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]

create a new Sample from given start, stop, and channel

return the metric /// deprecated

return the metric

return the duration

return the start time

return the stop time

Trait Implementations

impl<T: Clone> Clone for Sample<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more