pub trait WallClock: Send + Sync {
// Required method
fn now_unix_ns(&self) -> u64;
}Expand description
Trait for wall-clock timestamps used in metadata.
Wall-clock time is used for envelope timestamps, logging, and other contexts where absolute time matters. Unlike monotonic time, wall-clock time can jump (e.g., NTP adjustments).
Required Methods§
Sourcefn now_unix_ns(&self) -> u64
fn now_unix_ns(&self) -> u64
Current wall-clock timestamp in nanoseconds since Unix epoch.