Type Alias governor::clock::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

§

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.