Trait running_average::TimeInstant[][src]

pub trait TimeInstant {
    fn duration_since(&self, since: Self) -> Duration;
fn forward(&mut self, duration: Duration); }

Types implementing this trait can be used as Instant type in TimeSource trait and for RunningAverage

Required Methods

Returns Duration elapsed since given TimeInstant and Self.

Forward Self by given Duration into future.

Implementations on Foreign Types

impl TimeInstant for Instant
[src]

impl TimeInstant for f64
[src]

Implementors