Package com.helger.commons.statistics
Class StatisticsHandlerTimer
- java.lang.Object
-
- com.helger.commons.statistics.AbstractStatisticsHandlerNumeric
-
- com.helger.commons.statistics.StatisticsHandlerTimer
-
- All Implemented Interfaces:
IMutableStatisticsHandlerTimer,IStatisticsHandler,IStatisticsHandlerNumeric,IStatisticsHandlerTimer
@ThreadSafe public class StatisticsHandlerTimer extends AbstractStatisticsHandlerNumeric implements IMutableStatisticsHandlerTimer
Default implementation ofIMutableStatisticsHandlerTimer- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description StatisticsHandlerTimer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddTime(long nMillis)Add a single execution time.-
Methods inherited from class com.helger.commons.statistics.AbstractStatisticsHandlerNumeric
addValue, getAverage, getInvocationCount, getMax, getMin, getSum
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandler
getInvocationCount
-
Methods inherited from interface com.helger.commons.statistics.IStatisticsHandlerNumeric
getAverage, getMax, getMin, getSum
-
-
-
-
Method Detail
-
addTime
public void addTime(@Nonnegative long nMillis)
Description copied from interface:IMutableStatisticsHandlerTimerAdd a single execution time.- Specified by:
addTimein interfaceIMutableStatisticsHandlerTimer- Parameters:
nMillis- The milliseconds it took to execute something. Should not be negative.
-
-