Stopwatch

Trait Stopwatch 

Source
pub trait Stopwatch {
    // Required methods
    fn new() -> Self;
    fn measure(&self) -> Duration;
}

Required Methods§

Source

fn new() -> Self

Source

fn measure(&self) -> Duration

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§