Trait timekeeper::Tracker
[−]
[src]
pub trait Tracker: Default { type Statistics: Default; fn record(&mut self, time: u64); fn get_stats(&self, partial_time: Option<u64>) -> Self::Statistics; fn get(&self, partial_time: Option<u64>) -> u64; }
Associated Types
type Statistics: Default
Required Methods
fn record(&mut self, time: u64)
fn get_stats(&self, partial_time: Option<u64>) -> Self::Statistics
fn get(&self, partial_time: Option<u64>) -> u64
Implementors
impl Tracker for SimpleTracker type Statistics = u64;