implementation function timerClock