pub trait ReferenceTimeSource: Send + Sync {
    // Required methods
    fn now_100ns(&self) -> u64;
    fn is_backed_by_tsc(&self) -> bool;
}
Expand description

Trait for reference time.

Required Methods§

source

fn now_100ns(&self) -> u64

Returns the current time in 100ns units.

source

fn is_backed_by_tsc(&self) -> bool

Returns if this reference time is backed by TSC.

Implementors§