public class TimeStatisticImpl extends StatisticImpl
enabled| Constructor and Description |
|---|
TimeStatisticImpl(String name,
String description) |
TimeStatisticImpl(String name,
String unit,
String description) |
TimeStatisticImpl(TimeStatisticImpl parent,
String name,
String description) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTime(long time) |
protected void |
appendFieldDescription(StringBuffer buffer) |
double |
getAveragePerSecond() |
double |
getAveragePerSecondExcludingMinMax() |
double |
getAverageTime() |
double |
getAverageTimeExcludingMinMax() |
long |
getCount() |
long |
getMaxTime() |
long |
getMinTime() |
TimeStatisticImpl |
getParent() |
long |
getTotalTime() |
void |
reset()
Reset the statistic
|
void |
setParent(TimeStatisticImpl parent) |
getDescription, getLastSampleTime, getName, getStartTime, getUnit, isDoReset, isEnabled, setDoReset, setEnabled, toString, updateSampleTimepublic TimeStatisticImpl(String name, String description)
public TimeStatisticImpl(TimeStatisticImpl parent, String name, String description)
public TimeStatisticImpl(String name, String unit, String description)
public void reset()
Resettablereset in interface Resettablereset in class StatisticImplpublic long getCount()
public void addTime(long time)
public long getMaxTime()
public long getMinTime()
public long getTotalTime()
public double getAverageTime()
public double getAverageTimeExcludingMinMax()
public double getAveragePerSecond()
public double getAveragePerSecondExcludingMinMax()
public TimeStatisticImpl getParent()
public void setParent(TimeStatisticImpl parent)
protected void appendFieldDescription(StringBuffer buffer)
appendFieldDescription in class StatisticImplCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.