[][src]Trait embedded_time::Clock

pub trait Clock: Sized {
    type Rep: TimeRep;

    const PERIOD: Period;

    fn now() -> Instant<Self>;
}

Associated Types

type Rep: TimeRep

The type of the internal representation of time

Loading content...

Associated Constants

const PERIOD: Period

The duration of one clock tick, AKA the clock precision.

Loading content...

Required methods

fn now() -> Instant<Self>

Get the current Instant

Loading content...

Implementors

Loading content...