Skip to main content

Module clock

Module clock 

Source
Expand description

Real-time and virtual Clock implementations.

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

Structs§

CallbackRegistry
Registry for timer event callbacks.
ClockApi
Provides a user-facing facade over clock operations.
VirtualClock
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.