Skip to main content

timer_now

Function timer_now 

pub fn timer_now() -> Instant
Expand description

The instant the runtime’s timers measure against: tokio’s clock, which a test runtime started paused holds still and advances itself. A deadline that a tokio timer enforces is read on this clock, so the timer and the expiry check agree however promptly a loaded host runs them.