Expand description
Time abstraction (RFC-020 clock contract).
All expiry checks go through Clock so production code is testable with
a fixed time without system-clock dependencies. The clock is always
wall-time monotonic in production; only FixedClock (under test-utils) is non-monotonic.
Structs§
- System
Clock - Production clock backed by
SystemTime.
Traits§
- Clock
- A source of the current wall-clock time, expressed as seconds since the Unix epoch (UTC). Implementations must be infallible and must return a non-decreasing value in production.