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)
Timer
public HistogramImpl getHistogram()
getHistogram
in interface Timer
public DropwizardMeter getMeter()
public void updateMillis(long durationMillis)
Timer
updateMillis
in interface Timer
durationMillis
- the duration of the event in mspublic void updateMicros(long durationMicros)
Timer
updateMicros
in interface Timer
durationMicros
- the duration of the event in microsecondspublic void updateNanos(long durationNanos)
Timer
updateNanos
in interface Timer
durationNanos
- the duration of the event in nsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.