pub struct HiResTimer { /* private fields */ }Expand description
High-resolution timer using best available clock source
Implementations§
Source§impl HiResTimer
impl HiResTimer
Sourcepub fn elapsed(&self) -> HiResTimestamp
pub fn elapsed(&self) -> HiResTimestamp
Get elapsed time with picosecond resolution (where possible)
Sourcepub fn elapsed_nanos(&self) -> u64
pub fn elapsed_nanos(&self) -> u64
Get elapsed nanoseconds (convenience method)
Sourcepub fn elapsed_picos(&self) -> Picoseconds
pub fn elapsed_picos(&self) -> Picoseconds
Get elapsed picoseconds
Auto Trait Implementations§
impl Freeze for HiResTimer
impl RefUnwindSafe for HiResTimer
impl Send for HiResTimer
impl Sync for HiResTimer
impl Unpin for HiResTimer
impl UnwindSafe for HiResTimer
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