pub struct ElapsedTimer<'a, T> { /* private fields */ }
Expand description
Provides an easy way to calculate elapsed times.
This timer is usually used to compute how much time is elapsed between two events or to determine the event’s deadline in case of polling.
Implementations§
Source§impl<'a, T: SimpleClock> ElapsedTimer<'a, T>
impl<'a, T: SimpleClock> ElapsedTimer<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for ElapsedTimer<'a, T>
impl<'a, T> RefUnwindSafe for ElapsedTimer<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for ElapsedTimer<'a, T>where
T: Sync,
impl<'a, T> Sync for ElapsedTimer<'a, T>where
T: Sync,
impl<'a, T> Unpin for ElapsedTimer<'a, T>
impl<'a, T> UnwindSafe for ElapsedTimer<'a, T>where
T: 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