Skip to main content

Module clock

Module clock 

Source
Expand description

Clock adapter trait and implementations.

Structs§

FakeClock
Deterministic test clock: always returns the fixed SystemTime it was constructed with.
OsClock
Real clock: delegates to SystemTime::now.

Traits§

Clock
Abstraction over wall-clock time.