fixed the timer in C.