Try to implement timer_sleep()