Crate aliri_clock

Source
Expand description

Utilities for messing with time

Types included allow messing with and mocking out clocks and other side-effect-laden time operations.

Structs§

DurationSecs
Duration denominated in whole seconds
System
The system clock as provided by std::time::SystemTime
TestClock
A test clock which maintains the current time as internal state
UnixTime
Unix time

Traits§

Clock
Represents a clock, which can tell the current time