Skip to main content

Module clock

Module clock 

Source
Expand description

The UTC clock: an anchor pair mapping the caller’s monotonic microseconds to UTC, with a trust-ordered replacement rule.

docs/dash-runtime/DESIGN.md 3.2/3.3. Pure: the clock never reads a time source, it only maps instants it is given.

Structs§

Anchor
One anchor: at monotonic mono_us UTC was utc_us.
OfferPolicy
Parameters of the replacement rule.
UtcClock
The clock: at most one anchor.

Enums§

AdoptReason
Why an offered sample replaced the anchor.
ClockSource
Where an anchor came from, ordered by trust (lowest first).
OfferOutcome
The result of UtcClock::offer.
RejectReason
Why an offered sample was not adopted.