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

impl Default for Stopwatch
[src]

fn default() -> Stopwatch

Returns the "default value" for a type. Read more

impl Display for Stopwatch
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.