CalibratedClock

Trait CalibratedClock 

Source
pub trait CalibratedClock: Clock {
    // Required methods
    fn between_u64_ns(self, later: Self::Instant, earlier: Self::Instant) -> u64;
    fn add_u64_ns(self, base: Self::Instant, offset: u64) -> Self::Instant;
    fn sub_u64_ns(self, base: Self::Instant, offset: u64) -> Self::Instant;
}

Required Methods§

Source

fn between_u64_ns(self, later: Self::Instant, earlier: Self::Instant) -> u64

Source

fn add_u64_ns(self, base: Self::Instant, offset: u64) -> Self::Instant

Source

fn sub_u64_ns(self, base: Self::Instant, offset: u64) -> Self::Instant

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§