Updated timer.c