[][src]Trait sched_clock::clocks::linux::PosixClock

pub trait PosixClock: Default {
const CLOCK_ID: clockid_t;
    fn now_raw() -> timespec { ... }
fn resolution_raw() -> timespec { ... }
fn resolution() -> Duration { ... } }

Functionality shared by all POSIX-compliant high-resolution clocks

Associated Constants

const CLOCK_ID: clockid_t

Which clock are we talking about?

Loading content...

Provided methods

fn now_raw() -> timespec

Read the current value of this clock, in POSIX format

fn resolution_raw() -> timespec

Check the resolution (precision) of this clock, in POSIX format

fn resolution() -> Duration

Check the resolution (precision) of this clock, in this crate's format

Loading content...

Implementors

Loading content...