pub struct Timer<'c, C: Clock> {
pub start: Duration,
pub clock: &'c C,
}
Expand description
Helper to measure time elapsed
Get a timer with Clock.start_timer()
Fields§
§start: Duration
§clock: &'c C
Implementations§
Auto Trait Implementations§
impl<'c, C> Freeze for Timer<'c, C>
impl<'c, C> RefUnwindSafe for Timer<'c, C>where
C: RefUnwindSafe,
impl<'c, C> Send for Timer<'c, C>where
C: Sync,
impl<'c, C> Sync for Timer<'c, C>where
C: Sync,
impl<'c, C> Unpin for Timer<'c, C>
impl<'c, C> UnwindSafe for Timer<'c, C>where
C: RefUnwindSafe,
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