add class Timer with millisecond accuracy