pub struct Perf { /* private fields */ }
Expand description
This is what you get returned from the macro. You probably won’t create this directly.
Implementations§
Source§impl Perf
impl Perf
pub fn new(ident: String, start_line: String) -> Self
Sourcepub fn lap(&mut self, msg: &str)
pub fn lap(&mut self, msg: &str)
Gives the time elapsed from the last lap (or from the starting point of there has been no previous laps). You can have as many laps as you want. The message is printed with the measurement to identify where the measurement was done.
Auto Trait Implementations§
impl Freeze for Perf
impl RefUnwindSafe for Perf
impl Send for Perf
impl Sync for Perf
impl Unpin for Perf
impl UnwindSafe for Perf
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