Struct tic::Sample
[−]
[src]
pub struct Sample<T> { /* fields omitted */ }
a start and stop time for an event
Methods
impl<T: Hash + Eq + Send + Display + Clone> Sample<T>
[src]
fn new(start: u64, stop: u64, channel: T) -> Sample<T>
[src]
Create a new Sample for a single event
fn counted(start: u64, stop: u64, count: u64, channel: T) -> Sample<T>
[src]
Create a new Sample when multiple occurances of the event have happened
fn metric(&self) -> T
[src]
return the metric /// deprecated
fn channel(&self) -> T
[src]
return the metric
fn duration(&self) -> u64
[src]
return the duration
fn start(&self) -> u64
[src]
return the start time
fn stop(&self) -> u64
[src]
return the stop time
fn count(&self) -> u64
[src]
return the count of events