pub trait TimeSource {
type Instant: TimeInstant + Copy;
// Required method
fn now(&self) -> Self::Instant;
}
Expand description
Types implementing this trait can be used as TimeSource for RealTimeRunningAverage.
Required Associated Types§
Sourcetype Instant: TimeInstant + Copy
type Instant: TimeInstant + Copy
Type implementing TimeInstant for this TimeSource.