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>
create a new Sample from given start, stop, and channel
fn counted(start: u64, stop: u64, count: u64, channel: T) -> Sample<T>
fn metric(&self) -> T
return the metric /// deprecated
fn channel(&self) -> T
return the metric
fn duration(&self) -> u64
return the duration
fn start(&self) -> u64
return the start time
fn stop(&self) -> u64
return the stop time
fn count(&self) -> u64
return the count of events
Trait Implementations
impl<T: Clone> Clone for Sample<T>
[src]
fn clone(&self) -> Sample<T>
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