Skip to main content

Module system

Module system 

Source
Expand description

SystemClock โ€” real wall+monotonic reads (std or libc path).

Wall: SystemTime under std, clock_gettime(CLOCK_REALTIME) under core+libc. Monotonic: an Instant-anchored counter under std, clock_gettime(CLOCK_MONOTONIC) under libc. Both readings pass through the process-wide monotonic floor (REQ-CLK-001) and clamp (never panic) on misconfigured machines.

Structsยง

SystemClock
Real system clock (REQ-CLK-001/002). Zero-sized; Clock is implemented on a shared reference so one instance can be handed across threads.