[][src]Trait accel_stepper::SystemClock

pub trait SystemClock {
    fn elapsed(&self) -> Duration;
}

Something which records the elapsed real time.

This uses shared references because it may be shared between multiple components at any one time.

Required methods

fn elapsed(&self) -> Duration

The amount of time that has passed since a clock-specific reference point (e.g. device startup or the unix epoch).

Loading content...

Implementations on Foreign Types

impl<'a, C: SystemClock> SystemClock for &'a C[src]

Loading content...

Implementors

impl SystemClock for OperatingSystemClock[src]

Loading content...