![]() |
VR-Link API Documentation for HLA 1.3
|
This object takes time samples and maintains the minimum and maximum as well as a running average of the time samples. More...
Collaboration diagram for DtTimeStatistic:Public Member Functions | |
| DtTimeStatistic () | |
| CTOR. More... | |
| void | addTime (double time) |
| Add a new time sample. More... | |
| double | last () const |
| Get the last added time sample;. More... | |
| double | minimum () const |
| Get the minimum time sample. More... | |
| double | avg () const |
| Get the average time sample, averages between the last (theMaxCount -> 2*theMaxCount). More... | |
| double | maximum () const |
| Get the maximum time sample. More... | |
| void | reset () |
| Reset the stat back to it's original settings. More... | |
Protected Attributes | |
| double | myLastTime |
| double | myMinimum |
| double | mySum |
| double | myLastSum |
| double | myMaximum |
| unsigned int | myCount |
| unsigned int | myLastCount |
Static Protected Attributes | |
| static const int | theMaxCount = 1000 |
This object takes time samples and maintains the minimum and maximum as well as a running average of the time samples.
Typically time samples are in 'seconds' but this is not a hard requirements as long as the samples are doubles and early time < later time. Users usually do not create DtTimeStatistic objects but rather automatically created instances by the DtPerformanceStats class.
| DtTimeStatistic::DtTimeStatistic | ( | ) |
CTOR.
| void DtTimeStatistic::addTime | ( | double | time | ) |
Add a new time sample.
|
inline |
Get the average time sample, averages between the last (theMaxCount -> 2*theMaxCount).
|
inline |
Get the last added time sample;.
|
inline |
Get the maximum time sample.
|
inline |
Get the minimum time sample.
| void DtTimeStatistic::reset | ( | ) |
Reset the stat back to it's original settings.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |