Lyricdev
GitHub

struct Monotonic

pub struct Monotonic

A moment on the clock that only moves forward: for how long something takes, never for the time of day.

Methods

pub static fn now(): Monotonic
pub fn elapsed(): Duration

Returns how long ago this moment was taken.