pub trait Time {
    type Frequency: Frequency;
    type Ticks: Ticks;

    fn now(&self) -> Self::Ticks;
}
Expand description

Represents a moment in time, obtained by calling now.

Required Associated Types

The number of ticks per second

The width of a time value

Required Methods

Returns a timestamp. Depending on the implementation of Time, this could represent either a static timestamp or a sample of a counter; if an implementation relies on it being constant or changing it should use Timestamp or Counter.

Implementors