public class NoopFunctionTimer extends NoopMeter implements FunctionTimer
FunctionTimer.Builder<T>Meter.Id, Meter.Type| Constructor and Description |
|---|
NoopFunctionTimer(Meter.Id id) |
| Modifier and Type | Method and Description |
|---|---|
TimeUnit |
baseTimeUnit() |
double |
count() |
double |
totalTime(TimeUnit unit)
The total time of all occurrences of the timed event.
|
getIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuilder, mean, measurepublic NoopFunctionTimer(Meter.Id id)
public double count()
count in interface FunctionTimerpublic double totalTime(TimeUnit unit)
FunctionTimertotalTime in interface FunctionTimerunit - The base unit of time to scale the total to.public TimeUnit baseTimeUnit()
baseTimeUnit in interface FunctionTimerCopyright © 2020 LeanCloud. All rights reserved.