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 for a single event

Create a new Sample when multiple occurances of the event have happened

Create a new Sample of a point-in-time value

return the metric /// deprecated

return the metric

return the duration

return the start time

return the stop time

return the count of events

return the value

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

Auto Trait Implementations

impl<T> Send for Sample<T> where
    T: Send

impl<T> Sync for Sample<T> where
    T: Sync