public interface Timer extends IMetric
| 限定符和类型 | 方法和说明 |
|---|---|
Rate |
getImmutableRate()
It's not safe to use the update interface of this rate
|
HistogramSnapshot |
takeSnapshot()
take snapshot of timer
|
void |
update(long duration,
TimeUnit unit)
update time of timer
|
default void |
updateMicros(long durationMicros)
update timer by microseconds
|
default void |
updateMillis(long durationMillis)
update timer by millisecond
|
default void |
updateNanos(long durationNanos)
update timer by nanoseconds
|
void update(long duration,
TimeUnit unit)
default void updateMillis(long durationMillis)
default void updateMicros(long durationMicros)
default void updateNanos(long durationNanos)
HistogramSnapshot takeSnapshot()
Rate getImmutableRate()
Copyright © 2022 The Apache Software Foundation. All rights reserved.