timer_sleep() modification