public final class TimeStatisticImpl extends StatisticImpl implements TimeStatistic, java.lang.reflect.InvocationHandler
LAST_SAMPLE_TIME, NEWLINE, sampleTime, START_TIME, statMap, UNIT_COUNT, UNIT_MICROSECOND, UNIT_MILLISECOND, UNIT_NANOSECOND, UNIT_SECOND| Constructor and Description |
|---|
TimeStatisticImpl(long counter,
long maximumTime,
long minimumTime,
long totalTime,
java.lang.String name,
java.lang.String unit,
java.lang.String desc,
long startTime,
long sampleTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCount()
Returns the number of times an operation was invoked
|
long |
getMaxTime()
Returns the maximum amount of time that it took for one invocation of an
operation, since measurement started.
|
long |
getMinTime()
Returns the minimum amount of time that it took for one invocation of an
operation, since measurement started.
|
java.util.Map |
getStaticAsMap() |
TimeStatistic |
getStatistic() |
long |
getTotalTime()
Returns the amount of time that it took for all invocations,
since measurement started.
|
void |
incrementCount(long current) |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args) |
void |
reset() |
java.lang.String |
toString() |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLastSampleTime, getName, getStartTime, getUnitpublic TimeStatisticImpl(long counter,
long maximumTime,
long minimumTime,
long totalTime,
java.lang.String name,
java.lang.String unit,
java.lang.String desc,
long startTime,
long sampleTime)
public final java.lang.String toString()
toString in class StatisticImplpublic TimeStatistic getStatistic()
public java.util.Map getStaticAsMap()
getStaticAsMap in class StatisticImplpublic void incrementCount(long current)
public long getCount()
getCount in interface TimeStatisticpublic long getMaxTime()
getMaxTime in interface TimeStatisticpublic long getMinTime()
getMinTime in interface TimeStatisticpublic long getTotalTime()
getTotalTime in interface TimeStatisticpublic void reset()
reset in class StatisticImplpublic java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method m,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwable