[][src]Trait clepsydra::Clock

pub trait Clock: Send + Sync {
    pub fn current_time(&self) -> SystemTime;
}

Trait to support multiple sorts of clock-source.

Required methods

pub fn current_time(&self) -> SystemTime[src]

Loading content...

Implementors

impl Clock for RealClock[src]

impl Clock for TestClock[src]

Loading content...