@InterfaceAudience.LimitedPrivate(value="Coprocesssor") @InterfaceStability.Evolving public interface Timer extends Metric
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.
|
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
|
void update(long duration, TimeUnit unit)
duration
- the duration of the eventunit
- the time unit for the durationvoid updateMillis(long durationMillis)
durationMillis
- the duration of the event in msvoid updateMicros(long durationMicros)
durationMicros
- the duration of the event in microsecondsvoid updateNanos(long durationNanos)
durationNanos
- the duration of the event in ns@InterfaceAudience.Private Histogram getHistogram()
@InterfaceAudience.Private Meter getMeter()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.