Clock

Trait Clock 

Source
pub trait Clock: Send + Sync {
    // Required methods
    fn now_ns(&self) -> u64;
    fn elapsed_ns(&self, since: Instant) -> u64;
}

Required Methods§

Source

fn now_ns(&self) -> u64

2026-09-26: Nanoseconds on a monotonic timeline private to this clock.

Source

fn elapsed_ns(&self, since: Instant) -> u64

2026-09-26: Nanoseconds since since.

Implementors§