Struct benchmarking::Measurer
source · pub struct Measurer { /* private fields */ }
Expand description
To measure the execution time.
Implementations§
source§impl Measurer
impl Measurer
sourcepub fn get_result(&self) -> Option<&MeasureResult>
pub fn get_result(&self) -> Option<&MeasureResult>
Get the result.
sourcepub fn is_measured(&self) -> bool
pub fn is_measured(&self) -> bool
Check this measurer whether it is measured.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Measurer
impl RefUnwindSafe for Measurer
impl Send for Measurer
impl Sync for Measurer
impl Unpin for Measurer
impl UnwindSafe for Measurer
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