Lines Matching refs:Instant
9 use tokio::time::{self, Duration, Instant};
31 let now = Instant::now(); in immediate_sleep()
62 let now = Instant::now(); in delayed_sleep_level_0()
75 let now = Instant::now(); in sub_ms_delayed_sleep()
90 let now = Instant::now(); in delayed_sleep_wrapping_level_0()
100 let now = Instant::now(); in reset_future_sleep_before_fire()
107 sleep.as_mut().reset(Instant::now() + ms(200)); in reset_future_sleep_before_fire()
117 let now = Instant::now(); in reset_past_sleep_before_turn()
134 let now = Instant::now(); in reset_past_sleep_before_fire()
153 let now = Instant::now(); in reset_future_sleep_after_fire()
168 let now = Instant::now(); in reset_sleep_to_past()
188 let now = Instant::now(); in creating_sleep_outside_of_context()
200 time::sleep_until(Instant::now() + ms(YR_5)).await; in greater_than_max()
225 let deadline = tokio::time::Instant::now() in multi_long_sleeps()
233 assert!(tokio::time::Instant::now() >= deadline); in multi_long_sleeps()
240 let deadline = tokio::time::Instant::now() in long_sleeps()
248 assert!(tokio::time::Instant::now() >= deadline); in long_sleeps()
249 assert!(tokio::time::Instant::now() <= deadline + Duration::from_millis(1)); in long_sleeps()
258 if let Some(deadline) = tokio::time::Instant::now().checked_add(Duration::from_secs(1u64 << 62)) in very_long_sleeps()
281 .reset(tokio::time::Instant::now() + std::time::Duration::from_secs(600)); in reset_after_firing()
318 let start = tokio::time::Instant::now(); in drop_after_reschedule_at_new_scheduled_time()