pub struct ClockTimer { /* private fields */ }
Expand description
An interval tracking clock. Takes a start time, an end time or a run duration,
and an interval. Calls to tick
will return only if
the current time is at or past the time of the next interval, waiting so
that it is before returning. It yields timing information when returning.
If this falls behind time for some reason, the ticks will be yielded with
the time information at when it was supposed to yield, until catching up.
Implementations§
Auto Trait Implementations§
impl Freeze for ClockTimer
impl RefUnwindSafe for ClockTimer
impl Send for ClockTimer
impl Sync for ClockTimer
impl Unpin for ClockTimer
impl UnwindSafe for ClockTimer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more