[][src]Trait sched_clock::clocks::Clock

pub trait Clock: Default {
    fn now(&self) -> Instant;
}

Common interface shared by all Clocks provided by this library

Required methods

fn now(&self) -> Instant

Get an Instant representing the current time

Instants should be above Instant::EPOCH and monotonically increasing, but low-quality clocks may slow down and speed up slightly as they try to synchronize themselves with other clocks. Good timestamp clocks will prevent this and always deliver 100% steady time.

Loading content...

Implementors

impl Clock for StdClock[src]

impl<C: PosixClock> Clock for C[src]

Loading content...