Package com.helger.commons.statistics
Class StatisticsHandlerKeyedTimer
java.lang.Object
com.helger.commons.statistics.AbstractStatisticsHandlerKeyedNumeric
com.helger.commons.statistics.StatisticsHandlerKeyedTimer
- All Implemented Interfaces:
IMutableStatisticsHandlerKeyedTimer,IStatisticsHandler,IStatisticsHandlerKeyed,IStatisticsHandlerKeyedNumeric,IStatisticsHandlerKeyedTimer
@ThreadSafe
public class StatisticsHandlerKeyedTimer
extends AbstractStatisticsHandlerKeyedNumeric
implements IMutableStatisticsHandlerKeyedTimer
Default implementation of
IMutableStatisticsHandlerKeyedTimer- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.helger.commons.statistics.AbstractStatisticsHandlerKeyedNumeric
addValue, getAllKeys, getAverage, getInvocationCount, getInvocationCount, getMax, getMin, getSumMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCountMethods inherited from interface com.helger.commons.statistics.IStatisticsHandlerKeyed
getAllKeys, getInvocationCountMethods inherited from interface com.helger.commons.statistics.IStatisticsHandlerKeyedNumeric
getAverage, getMax, getMin, getSum
-
Constructor Details
-
StatisticsHandlerKeyedTimer
public StatisticsHandlerKeyedTimer()
-
-
Method Details
-
addTime
Description copied from interface:IMutableStatisticsHandlerKeyedTimerAdd a single execution time.- Specified by:
addTimein interfaceIMutableStatisticsHandlerKeyedTimer- Parameters:
sKey- The key to be incremented.nMillis- The milli seconds it took to execute something. Should not be negative.
-