Skip to main content

Module timer

Module timer 

Source
Expand description

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

Defines TimeEvent values, callback and handler types, heap scheduling order, and the deterministic TestTimer iterator. The event and callback primitives are shared by test 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.
TestTimer
A deterministic interval timer for use with a TestClock.
TimeEvent
Represents a named timer event.
TimeEventHandler
Pairs a TimeEvent with its callback for ordered dispatch.

Enums§

TimeEventCallback
Represents a callback invoked for time events.

Functions§

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