Skip to main content

Module clock

Module clock 

Source
Expand description

Reusable global-clock and timing vocabulary for vihaco runtimes.

GlobalClock is an ordered event queue. It owns modeled timeline state, but does not execute instructions, dispatch events, or know about the machine that owns it. A runtime can use the types in this module to build its own scheduling policy and root event loop.

Structs§

GlobalClock
A deterministic event queue ordered by global tick and insertion sequence.
GlobalDuration
A distance between two positions on the modeled global timeline.
GlobalTick
An absolute position on the modeled global timeline.
GlobalTicksPerLocalCycle
The conversion ratio from local cycles to global ticks.
LocalCycles
Work measured in the local clock domain of a component.
Schedule
Owned scheduling work returned by a clocked component.

Enums§

ClockFault
Errors produced while validating or advancing a modeled clock.

Traits§

ClockedComponent
Generic boundary for a component that participates in a global event loop.
TimedInstruction
Runtime instructions provide the local duration of their operation.