modify timer.c for timer_pure_init