![]() |
VR-Link API Documentation for HLA Evolved
|
A stats reporter class is responsible for managing a collection of time stats. More...
Collaboration diagram for DtPerformanceStats:Public Types | |
| typedef std::vector < DtTimeStatistic > | TimeStats |
Public Member Functions | |
| DtPerformanceStats () | |
| ~DtPerformanceStats () | |
| void | resetAllStats () |
| Reset all of the stats. | |
| void | addTime (unsigned int id, double time) |
| Add a new time sample for a particular stat. | |
| double | last (unsigned int id) const |
| Get the last added time sample for a particular stat. | |
| double | minimum (unsigned int id) const |
| Get the minimum time sample for a particular stat. | |
| double | avg (unsigned int id) const |
| Get the average time sample for a particular stat. | |
| double | maximum (unsigned int id) const |
| Get the maximum time sample. | |
| DtTimeStatistic & | stat (unsigned int statEnumIndex) |
| Get a stat for a enum value, if the stat does not exist a new stat will be created. | |
| const DtTimeStatistic & | stat (unsigned int statEnumIndex) const |
| TimeStats & | stats () |
| Get all of the stats. | |
| const TimeStats & | stats () const |
| Get all of the stats. | |
Protected Attributes | |
| TimeStats | myStats |
A stats reporter class is responsible for managing a collection of time stats.
Typically it is only necessary to create a single reporter for your application, and create DtTimeStatistic objects automatically via it's stat function. .
| typedef std::vector<DtTimeStatistic> DtPerformanceStats::TimeStats |
| void DtPerformanceStats::addTime | ( | unsigned int | id, |
| double | time | ||
| ) | [inline] |
Add a new time sample for a particular stat.
| double DtPerformanceStats::avg | ( | unsigned int | id | ) | const [inline] |
Get the average time sample for a particular stat.
| double DtPerformanceStats::last | ( | unsigned int | id | ) | const [inline] |
Get the last added time sample for a particular stat.
| double DtPerformanceStats::maximum | ( | unsigned int | id | ) | const [inline] |
Get the maximum time sample.
| double DtPerformanceStats::minimum | ( | unsigned int | id | ) | const [inline] |
Get the minimum time sample for a particular stat.
| void DtPerformanceStats::resetAllStats | ( | ) |
Reset all of the stats.
| DtTimeStatistic& DtPerformanceStats::stat | ( | unsigned int | statEnumIndex | ) |
Get a stat for a enum value, if the stat does not exist a new stat will be created.
| Input | |
| statEnumIndex,the | enumerated index of the stat you are interested in. |
| const DtTimeStatistic& DtPerformanceStats::stat | ( | unsigned int | statEnumIndex | ) | const |
Get all of the stats.
| const TimeStats& DtPerformanceStats::stats | ( | ) | const |
Get all of the stats.
TimeStats DtPerformanceStats::myStats [protected] |