pub fn instant_time_and_sleep(
    start_time: SystemTime
) -> (ManualTimeSource, InstantSleep)
Available on crate feature test-util only.
Expand description

Returns a duo of tools to test interactions with time. Sleeps will end instantly, but the desired length of the sleeps will be recorded for later verification.