Expand description
Clock abstractions for event-driven runtimes. Clock abstractions for event-driven runtimes.
Clock is a resource registered in the World. Handlers read it via
Res<Clock>. Sync sources install into the World via the Installer
trait and return pollers that sync the clock each poll loop iteration.
Three sync sources:
RealtimeClockInstaller→RealtimeClockPoller— productionTestClockInstaller→TestClockPoller— deterministic testingHistoricalClockInstaller→HistoricalClockPoller— replay
The RealtimeClockPoller calibration design is inspired by Agrona’s
OffsetEpochNanoClock.
Structs§
- Clock
- The current time — registered as a World resource.
- Historical
Clock Installer - Installer for the historical (replay) clock.
- Historical
Clock Poller - Runtime poller for historical (replay) clock — auto-advances per sync.
- Realtime
Clock Installer - Installer for the realtime clock. Consumed at setup.
- Realtime
Clock Installer Builder - Builder for
RealtimeClockInstaller. - Realtime
Clock Poller - Runtime poller for the realtime clock.
- Test
Clock Installer - Installer for the test clock.
- Test
Clock Poller - Runtime poller for the test clock — manually controlled.
Enums§
- Config
Error - Configuration error from clock construction.