Struct microbench::Stopwatch
[−]
[src]
pub struct Stopwatch { /* fields omitted */ }
A high-precision stopwatch.
Methods
impl Stopwatch
[src]
fn new() -> Self
Constructs a new Stopwatch
.
fn elapsed(&self) -> u64
Returns the elapsed nanoseconds since this stopwatch was constructed or reset.
fn reset(&mut self)
Resets this stopwatch.
Trait Implementations
impl Clone for Stopwatch
[src]
fn clone(&self) -> Stopwatch
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more