Added getTime method in TimerUtils.