Skip to main content

TimeSource

Trait TimeSource 

Source
pub trait TimeSource<I: TimeInstant> {
    // Required method
    fn now(&self) -> I;
}
Expand description

Trait for abstracting time sources.

Required Methods§

Source

fn now(&self) -> I

Returns the current time instant.

Implementors§