pub fn controlled_time_and_sleep(
start_time: SystemTime,
) -> (ManualTimeSource, ControlledSleep, SleepGate)Expand description
Returns a trio of tools to test interactions with time
ManualTimeSourcewhich starts at a specific time and only advances whensleepis called. It MUST be paired withControlledSleepin order to function.