pub fn sleep_until(deadline: TimeValue)
For single-task situation, we just busy wait until reaching the given deadline.