|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.common.StatisticTimer
public class StatisticTimer
Usage of the Statistic Timer for periodic cyclic timing measurements Typical operation
| Nested Class Summary | |
|---|---|
class |
StatisticTimer.OneTimeStep
Inner Sampling Class. |
| Field Summary | |
|---|---|
protected boolean |
_flagDetailedString
Detailing of Output - controls the toText function. |
| Constructor Summary | |
|---|---|
StatisticTimer()
Creates a new instance of StatisticTimer. |
|
StatisticTimer(int nCallsInit,
long minTimeInit,
long maxTimeInit,
long sumTimeInit,
double sumSquaredTimeInit)
Creates a new instance of StatisticTimer with initial conditions to reinitialize statistics. |
|
| Method Summary | |
|---|---|
long |
getMaxTime()
get the Maximum sample time in nanoseconds of all samples. |
double |
getMaxTimeMillis()
Get the minimum Sample time in milliseconds. |
double |
getMeanTime()
Gets mean time. |
double |
getMeanTimeMillis()
Get the mean of all squared Sample times in milliseconds. |
long |
getMinTime()
get the Minimum sample time in nanoseconds of all samples. |
double |
getMinTimeMillis()
Get the minimum Sample time in milliseconds. |
int |
getNCalls()
get the number of samples. |
long |
getStdDevTime()
Gets the statistic standard deviation in nanoseconds. |
double |
getStdDevTimeMillis()
Get the Statistic Standard Deviation of all Sample times in milliseconds. |
double |
getSumSquaredTime()
get the squared time in nanoseconds. |
double |
getSumSquaredTimeMillis()
Get the Sum of all squared Sample times in milliseconds. |
long |
getSumTime()
get the sum of all time samples. |
double |
getSumTimeMillis()
Get the Sum of all Sample times in milliseconds. |
StatisticTimer |
mergeMeasurement(StatisticTimer inst)
Merges the measurement of another instance to this instance. |
StatisticTimer.OneTimeStep |
newTimeStep()
Start the measurement of one new sample When timing measurement of this sample shall end, call OneTimeStep.end(). |
protected static double |
toMillis(double timeInNanos)
Function to convert nanoseconds in milliseconds. |
protected static double |
toMillis(long timeInNanos)
Function to convert nanoseconds in milliseconds. |
String |
toString()
serialize contents to a string the output can be detailed when activateDetailedOutput() is set to true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected boolean _flagDetailedString
| Constructor Detail |
|---|
public StatisticTimer()
public StatisticTimer(int nCallsInit,
long minTimeInit,
long maxTimeInit,
long sumTimeInit,
double sumSquaredTimeInit)
nCallsInit - initial number of calls.minTimeInit - initial minTime.maxTimeInit - initialsumTimeInit - initialsumSquaredTimeInit - initial| Method Detail |
|---|
public StatisticTimer mergeMeasurement(StatisticTimer inst)
inst - the instance to merge
public int getNCalls()
public long getMinTime()
public double getMinTimeMillis()
public long getMaxTime()
public double getMaxTimeMillis()
public long getSumTime()
public double getSumTimeMillis()
public double getSumSquaredTime()
public double getSumSquaredTimeMillis()
public double getMeanTime()
public double getMeanTimeMillis()
public long getStdDevTime()
public double getStdDevTimeMillis()
protected static double toMillis(double timeInNanos)
timeInNanos - - time in nanoseconds double !!
protected static double toMillis(long timeInNanos)
timeInNanos - - time in nanoseconds long !!
public String toString()
toString in class Objectpublic StatisticTimer.OneTimeStep newTimeStep()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||