Skip to main content

Module clock

Module clock 

Source
Expand description

Real-time and static Clock implementations.

Defines the Clock contract, the user-facing ClockApi facade, and the deterministic TestClock used for controlled time advancement. Shared validation and callback registration support test and live clock implementations.

Structs§

CallbackRegistry
Registry for timer event callbacks.
ClockApi
Provides a user-facing facade over clock operations.
TestClock
A deterministic clock for controlled time advancement.

Traits§

Clock
Provides time access, timer scheduling, and callback registration.

Functions§

validate_and_prepare_time_alert
Validates and normalizes parameters for a time alert.
validate_and_prepare_timer
Validates and normalizes parameters for an interval timer.