Trait breezy_timer::Timer[][src]

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

Provided methods

pub 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

pub 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

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

Loading content...

Implementors

Loading content...