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]

[src]

Create a new Sample for a single event

[src]

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

[src]

return the metric /// deprecated

[src]

return the metric

[src]

return the duration

[src]

return the start time

[src]

return the stop time

[src]

return the count of events

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more