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 Instant: TimeInstant + Copy
Type implementing TimeInstant for this TimeSource.
Required Methods
Implementors
impl TimeSource for RealTimeSource type Instant = Instant;
impl TimeSource for ManualTimeSource type Instant = f64;