Struct stopwatch::Stopwatch
[−]
[src]
pub struct Stopwatch { // some fields omitted }
Methods
impl Stopwatch
[src]
fn new() -> Stopwatch
fn start_new() -> Stopwatch
fn start(&mut self)
fn stop(&mut self)
fn reset(&mut self)
fn restart(&mut self)
fn is_running(&self) -> bool
fn elapsed(&self) -> Duration
fn elapsed_ms(&self) -> i64
Trait Implementations
impl Copy for Stopwatch
[src]
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