Modifier and Type | Method and Description |
---|---|
Histogram |
getHistogram() |
Meter |
getMeter() |
void |
update(long duration,
TimeUnit unit)
Update the timer with the given duration in given time unit.
|
default void |
updateMicros(long durationMicros)
Update the timer with the given duration in microseconds
|
default void |
updateMillis(long durationMillis)
Update the timer with the given duration in milliseconds
|
default void |
updateNanos(long durationNanos)
Update the timer with the given duration in nanoseconds
|
void update(long duration, TimeUnit unit)
duration
- the duration of the eventunit
- the time unit for the durationdefault void updateMillis(long durationMillis)
durationMillis
- the duration of the event in msdefault void updateMicros(long durationMicros)
durationMicros
- the duration of the event in microsecondsdefault void updateNanos(long durationNanos)
durationNanos
- the duration of the event in ns@InterfaceAudience.Private Histogram getHistogram()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.