Time

Trait Time 

Source
pub trait Time {
    // Required method
    fn unix_time_now(&self) -> u64;
}
Expand description

Time trait to provide current unix time. Mainly defined to facilitate testing.

Required Methods§

Source

fn unix_time_now(&self) -> u64

Must return the unix epoch corresponding to the current time.

Implementors§