Skip to main content

Module mesh_clock

Module mesh_clock 

Source
Expand description

Injectable clock for mesh time-dependent components (WEFT-113).

Mesh heartbeat, dedup TTL, service-resolution cache, and related logic must not hardwire std::time::Instant::now() / SystemTime if deterministic tests are required. Production code binds RealClock; tests bind MockClock.

Structs§

MockClock
Controllable clock for deterministic time-dependent tests (WEFT-112).
MonoTime
Monotonic timestamp relative to an opaque origin (nanoseconds).
RealClock
Production clock backed by std::time.

Traits§

Clock
Injectable time source for mesh components.