public class DropwizardTimer extends AbstractTimer
Timer.BuilderMeter.Typeclock, id| Constructor and Description |
|---|
DropwizardTimer(MeterId id,
com.codahale.metrics.Timer impl,
Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
The number of times that record has been called since this timer was created.
|
java.util.List<Measurement> |
measure()
Get the set of measurements for this meter.
|
void |
record(long amount,
java.util.concurrent.TimeUnit unit)
Updates the statistics kept by the counter with the specified amount.
|
double |
totalTime(java.util.concurrent.TimeUnit unit)
The total time of all recorded events since this timer was created.
|
equals, getName, getTags, hashCode, record, record, recordCallable, wrapclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetType, totalTimeNanos, wrappublic void record(long amount,
java.util.concurrent.TimeUnit unit)
Timeramount - Duration of a single event being measured by this timer. If the amount is less than 0
the value will be dropped.unit - Time unit for the amount being recorded.public long count()
Timerpublic double totalTime(java.util.concurrent.TimeUnit unit)
Timerpublic java.util.List<Measurement> measure()
Meter