Trait breezy_timer_lib::Timer[][src]

pub trait Timer {
    fn start(&mut self, _: &'static str) { ... }
fn stop(&mut self, _: &'static str) { ... }
fn elapsed(&self, _: &'static str) -> Option<Duration> { ... } }

Provided methods

fn start(&mut self, _: &'static str)[src]

Creates or updates a timer with the provided name. The same timer can be started and stopped as many times as needed, and will keep track of the sum of all the time spent

fn stop(&mut self, _: &'static str)[src]

Stops the timer with the provided name. The timer must already exist, or this call will panic. The same timer can be started and stopped as many times as needed, and will keep track of the sum of all the intervals

fn elapsed(&self, _: &'static str) -> Option<Duration>[src]

Loading content...

Implementations on Foreign Types

impl Timer for HashMap<&'static str, TimerState>[src]

Loading content...

Implementors

Loading content...