|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.perf4j.TimingStatistics
public class TimingStatistics
TimingStatistics represent a set of statistical measures over a set of timing data, such as a collection of StopWatch instances.
Constructor Summary | |
---|---|
TimingStatistics()
Default constructor allows you to set performance statistics later using the setter methods. |
|
TimingStatistics(double mean,
double standardDeviation,
long max,
long min,
int count)
Creates a TimingStatistics object with the specified data. |
Method Summary | |
---|---|
TimingStatistics |
addSampleTime(long elapsedTime)
This method updates the calculated statistics with a new logged execution time. |
TimingStatistics |
clone()
|
boolean |
equals(Object o)
|
int |
getCount()
|
long |
getMax()
|
double |
getMean()
|
long |
getMin()
|
double |
getStandardDeviation()
|
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TimingStatistics()
public TimingStatistics(double mean, double standardDeviation, long max, long min, int count)
mean
- The mean execution time, in ms, of the underlying time records.standardDeviation
- The standard deviation, in ms, of the underlying time records.max
- The maximum value in ms of the logged execution times.min
- The minimum value in ms of the logged execution times.count
- The total number of executions that were timed.Method Detail |
---|
public TimingStatistics addSampleTime(long elapsedTime)
elapsedTime
- The elapsed time being used to update the statistics.
public double getMean()
public double getStandardDeviation()
public long getMax()
public long getMin()
public int getCount()
public String toString()
toString
in class Object
public TimingStatistics clone()
clone
in class Object
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |