governor::clock

Type Alias DefaultClock

Source
pub type DefaultClock = QuantaClock;
Expand description

The default clock using quanta for extremely fast timekeeping (at a 100ns resolution).

Aliased Type§

struct DefaultClock { /* private fields */ }

Trait Implementations

Source§

impl Clock for QuantaClock

Source§

type Instant = QuantaInstant

A measurement of a monotonically increasing clock.
Source§

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

Returns a measurement of the clock.
Source§

impl Clone for QuantaClock

Source§

fn clone(&self) -> QuantaClock

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for QuantaClock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for QuantaClock

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl ReasonablyRealtime for QuantaClock

Source§

fn reference_point(&self) -> Self::Instant

Returns a reference point at the start of an operation.