pub struct Measure { /* private fields */ }
Implementations§
Source§impl Measure
impl Measure
pub fn start(name: &'static str) -> Self
pub fn stop(&mut self)
pub fn as_ns(&self) -> u64
pub fn as_us(&self) -> u64
pub fn as_ms(&self) -> u64
pub fn as_s(&self) -> f32
pub fn as_duration(&self) -> Duration
pub fn end_as_ns(self) -> u64
pub fn end_as_us(self) -> u64
pub fn end_as_ms(self) -> u64
pub fn end_as_s(self) -> f32
pub fn end_as_duration(self) -> Duration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Measure
impl RefUnwindSafe for Measure
impl Send for Measure
impl Sync for Measure
impl Unpin for Measure
impl UnwindSafe for Measure
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