@ThreadSafe public class StatisticsHandlerKeyedTimer extends AbstractStatisticsHandlerKeyedNumeric implements IMutableStatisticsHandlerKeyedTimer
IMutableStatisticsHandlerKeyedTimer
Constructor and Description |
---|
StatisticsHandlerKeyedTimer() |
Modifier and Type | Method and Description |
---|---|
void |
addTime(String sKey,
long nMillis)
Add a single execution time.
|
addValue, getAllKeys, getAverage, getInvocationCount, getInvocationCount, getMax, getMin, getSum
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAverage, getMax, getMin, getSum
getAllKeys, getInvocationCount
getInvocationCount
public void addTime(@Nullable String sKey, @Nonnegative long nMillis)
IMutableStatisticsHandlerKeyedTimer
addTime
in interface IMutableStatisticsHandlerKeyedTimer
sKey
- The key to be incremented.nMillis
- The milli seconds it took to execute something. Should not be
negative.Copyright © 2014–2019 Philip Helger. All rights reserved.