Skip to main content

Module timer

Module timer 

Source
Expand description

Real-time and virtual timers for use with Clock implementations.

Defines TimeEvent values, callback and handler types, heap scheduling order, and the deterministic VirtualTimer iterator. The event and callback primitives are shared by virtual and live clock implementations.

Structs§

PythonTimeEventCallback
Wraps a Python callable that handles time events.
ScheduledTimeEvent
Orders a TimeEvent for earliest-first scheduling in a BinaryHeap.
TimeEvent
Represents a named timer event.
TimeEventHandler
Pairs a TimeEvent with its callback for ordered dispatch.
VirtualTimer
A deterministic interval timer for use with a VirtualClock.

Enums§

TimeEventCallback
Represents a callback invoked for time events.

Functions§

create_valid_interval
Returns a positive nanosecond interval, coercing zero to one nanosecond.