Trait ftvf::NowSource

source ·
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.

Required Associated Types§

Required Methods§

source

fn now(&mut self) -> Self::Instant

Return a point in time representing Now.

Implementors§