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, isValidString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDescription, getLastSampleTime, getName, getStartTime, getUnit
public final String toString()
toString
in class StatisticImpl
public TimeStatistic getStatistic()
public Map getStaticAsMap()
getStaticAsMap
in class StatisticImpl
public void incrementCount(long current)
public long getCount()
getCount
in interface TimeStatistic
public long getMaxTime()
getMaxTime
in interface TimeStatistic
public long getMinTime()
getMinTime
in interface TimeStatistic
public long getTotalTime()
getTotalTime
in interface TimeStatistic
public void reset()
reset
in class StatisticImpl
Copyright © 2017 Oracle. All rights reserved.