[][src]Trait futures_intrusive::timer::Clock

pub trait Clock: Sync {
    fn now(&self) -> u64;
}

A monotonic source of time.

Clocks must always returning increasing timestamps.

Required methods

fn now(&self) -> u64

Returns a timestamp in milliseconds which represents the current time according to the clock.

Clocks must only return timestamps that are bigger or equal than what they returned on the last call to now().

Loading content...

Implementors

impl Clock for MockClock[src]

impl Clock for StdClock[src]

Loading content...