| Constructor and Description |
|---|
TimerImpl() |
| Modifier and Type | Method and Description |
|---|---|
HistogramImpl |
getHistogram() |
DropwizardMeter |
getMeter() |
void |
update(long duration,
TimeUnit unit)
Update the timer with the given duration in given time unit.
|
void |
updateMicros(long durationMicros)
Update the timer with the given duration in microseconds
|
void |
updateMillis(long durationMillis)
Update the timer with the given duration in milliseconds
|
void |
updateNanos(long durationNanos)
Update the timer with the given duration in nanoseconds
|
public void update(long duration,
TimeUnit unit)
Timerpublic HistogramImpl getHistogram()
getHistogram in interface Timerpublic DropwizardMeter getMeter()
public void updateMillis(long durationMillis)
TimerupdateMillis in interface TimerdurationMillis - the duration of the event in mspublic void updateMicros(long durationMicros)
TimerupdateMicros in interface TimerdurationMicros - the duration of the event in microsecondspublic void updateNanos(long durationNanos)
TimerupdateNanos in interface TimerdurationNanos - the duration of the event in nsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.