pub struct Stopwatch { /* private fields */ }Implementations§
Source§impl Stopwatch
impl Stopwatch
pub fn start() -> Result<Self, Error<'a>>
pub fn stop(&mut self) -> Result<(), Error<'a>>
pub fn pause(&mut self) -> Result<(), Error<'a>>
pub fn resume(&mut self) -> Result<(), Error<'a>>
pub fn elapsed_ticks(&self) -> i64
pub fn elasped_nano(&self) -> i64
pub fn elapsed_micro(&self) -> i64
pub fn elapsed_milli(&self) -> i64
pub fn elapsed_seconds(&self) -> i64
pub fn elasped_nano_f64(&self) -> f64
pub fn elapsed_micro_f64(&self) -> f64
pub fn elapsed_milli_f64(&self) -> f64
pub fn elapsed_seconds_f64(&self) -> f64
Auto Trait Implementations§
impl Freeze for Stopwatch
impl RefUnwindSafe for Stopwatch
impl Send for Stopwatch
impl Sync for Stopwatch
impl Unpin for Stopwatch
impl UnwindSafe for Stopwatch
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