Skip to main content

Module clock

Module clock 

Source
Expand description

Abstract clock for capability time-bound enforcement.

The kernel core never calls std::time::SystemTime::now(). All time enters the pure evaluation surface through a &dyn Clock so that browser, WASM, and embedded adapters can inject Date.now(), instant::now(), or a fuzzed/mock clock for deterministic testing.

Structs§

FixedClock
Test-only clock that returns a fixed value.

Traits§

Clock
Abstract monotonic wall-clock exposing Unix seconds.