[][src]Trait cider::time::DurationSinceEpoch

pub trait DurationSinceEpoch {
    fn as_secs(&self) -> u64;
fn as_millis(&self) -> u64; }

A type which can return the duration since the epoch.

Required methods

fn as_secs(&self) -> u64

Returns the number of seconds since the epoch.

fn as_millis(&self) -> u64

Returns the number of milliseconds since the epoch.

Loading content...

Implementors

impl DurationSinceEpoch for StdDurationSinceEpoch[src]

Loading content...