Modifier and Type | Field and Description |
---|---|
private static TimeUnit |
DEFAULT_UNIT |
private HistogramImpl |
histogram |
private DropwizardMeter |
meter |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
updateMicros, updateMillis, updateNanos
private final HistogramImpl histogram
private final DropwizardMeter meter
private static final TimeUnit DEFAULT_UNIT
public TimerImpl()
public void update(long duration, TimeUnit unit)
Timer
public HistogramImpl getHistogram()
getHistogram
in interface Timer
public DropwizardMeter getMeter()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.