Expand description
The one time source this crate reads.
Core never calls the system clock. Every instant it stamps, and every
comparison it makes against one — a bounded intervention’s expiry, the
agent’s minimum interval — is read through a Clock, so that expiry is
driven by time passing and by nothing else and a test drives it by
advancing this one dependency alone.
Structs§
- System
Clock - The system’s own clock, which is what a running supervisor is given.
Traits§
- Clock
- The instant core reads the current time from.
Functions§
- plus_
seconds - The instant
secondsafterinstant. - seconds_
between - How many whole seconds
lateris afterearlier, saturating. - unix_
seconds - One instant as whole seconds after the Unix epoch.