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, updateSampleTime
public TimeStatisticImpl(String name, String description)
public TimeStatisticImpl(TimeStatisticImpl parent, String name, String description)
public TimeStatisticImpl(String name, String unit, String description)
public void reset()
Resettable
reset
in interface Resettable
reset
in class StatisticImpl
public 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 StatisticImpl
Copyright © 2005–2019 The Apache Software Foundation. All rights reserved.