pub struct Timer { /* private fields */ }Expand description
A scoped stopwatch. Timer::elapsed_ms returns raw milliseconds and
Timer::human a friendly string, for “how long did this take” reporting.
Implementations§
Auto Trait Implementations§
impl Forget for Timer
impl Freeze for Timer
impl Move for Timer
impl RefUnwindSafe for Timer
impl Send for Timer
impl Sync for Timer
impl Unpin for Timer
impl UnsafeUnpin for Timer
impl UnwindSafe for Timer
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