Trait aliri_clock::Clock[][src]

pub trait Clock: Debug {
    fn now(&self) -> UnixTime;
}
Expand description

Represents a clock, which can tell the current time

Required methods

fn now(&self) -> UnixTime[src]

Gets the current time according to this clock

Implementors

impl Clock for System[src]

fn now(&self) -> UnixTime[src]

impl Clock for TestClock[src]

fn now(&self) -> UnixTime[src]