Skip to main content

Module clock

Module clock 

Source
Expand description

Whether this broker’s wall clock agrees with the other brokers. No I/O: the owner supplies each sample and reads both clocks. Monotonic time alone decides which samples still count, so a wall clock step cannot revive an old one.

Structs§

ClockGuard
The latest sample of each peer. A delayed sample looks like a slow peer, so it can pause decisions but never approve a wrong clock: the median needs a majority of the clocks within the tolerance.

Enums§

ClockVerdict
What the fresh samples say about the local clock.

Constants§

SAMPLE_FRESH
How long a received sample counts.
SAMPLE_INTERVAL
How often a broker sends its wall time to each peer.