Trait maelstrom_util::time::ClockInstant

source ·
pub trait ClockInstant {
    // Required method
    fn elapsed(&self) -> Duration;
}

Required Methods§

source

fn elapsed(&self) -> Duration

Implementations on Foreign Types§

source§

impl ClockInstant for Instant

Implementors§

source§

impl<'a, ClockT> ClockInstant for SecondsInstant<'a, ClockT>
where ClockT: Clock<Instant<'a> = Self>,