Trait running_average::TimeSource[][src]

pub trait TimeSource {
    type Instant: TimeInstant + Copy;
    fn now(&self) -> Self::Instant;
}

Types implementing this trait can be used as TimeSource for RealTimeRunningAverage.

Associated Types

Type implementing TimeInstant for this TimeSource.

Required Methods

Return current Instant.

Implementors