public final class TimeStatisticImpl extends StatisticImpl implements TimeStatistic, 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,
String name,
String unit,
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.
|
Map |
getStaticAsMap() |
TimeStatistic |
getStatistic() |
long |
getTotalTime()
Returns the amount of time that it took for all invocations,
since measurement started.
|
void |
incrementCount(long current) |
Object |
invoke(Object proxy,
Method m,
Object[] args) |
void |
reset() |
String |
toString() |
checkMethod, getDescription, getLastSampleTime, getName, getStartTime, getUnit, isValidStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDescription, getLastSampleTime, getName, getStartTime, getUnitpublic final String toString()
toString in class StatisticImplpublic TimeStatistic getStatistic()
public 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 StatisticImplCopyright © 2017-2019 Eclipse Foundation. All Rights Reserved.