Trait maelstrom_util::time::Clock

source ·
pub trait Clock {
    type Instant<'a>: ClockInstant
       where Self: 'a;

    // Required method
    fn now(&self) -> Self::Instant<'_>;
}

Required Associated Types§

source

type Instant<'a>: ClockInstant where Self: 'a

Required Methods§

source

fn now(&self) -> Self::Instant<'_>

Object Safety§

This trait is not object safe.

Implementors§