updated timer_sleep.