pub trait NowSource {
type Instant: TemporalSample;
// Required method
fn now(&mut self) -> Self::Instant;
}
Expand description
A source of time information for Metronome
to use. For most purposes, RealtimeNowSource
will be sufficient. For non-realtime applications (such as rendering pre-determined gameplay footage), see FakeNowSource
.