public class CumulativeTimer extends AbstractTimer
Timer.BuilderMeter.Id, Meter.Typeclock, histogram| Constructor and Description |
|---|
CumulativeTimer(Meter.Id id,
Clock clock,
HistogramConfig histogramConfig)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
count()
The number of times that record has been called on this timer.
|
double |
max(java.util.concurrent.TimeUnit unit)
The maximum time of a single event.
|
java.lang.Iterable<Measurement> |
measure()
Get a set of measurements.
|
protected void |
recordNonNegative(long amount,
java.util.concurrent.TimeUnit unit) |
double |
totalTime(java.util.concurrent.TimeUnit unit)
The total time of recorded events.
|
equals, hashCode, histogramCountAtValue, percentile, record, record, record, recordCallable, statsConfig, takeSnapshotgetIdclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpublic CumulativeTimer(Meter.Id id, Clock clock, HistogramConfig histogramConfig)
protected void recordNonNegative(long amount,
java.util.concurrent.TimeUnit unit)
recordNonNegative in class AbstractTimerpublic long count()
Timerpublic double totalTime(java.util.concurrent.TimeUnit unit)
Timerpublic double max(java.util.concurrent.TimeUnit unit)
Timerpublic java.lang.Iterable<Measurement> measure()
Meter