Added timer.time(func) function wrapper