![]() |
VR-Link API Documentation for HLA Evolved
|
DtTimedSection are objects used to measure a section of time. More...
Collaboration diagram for DtTimedSection:Public Member Functions | |
| DtTimedSection () | |
| CTOR. | |
| void | start () |
| Start timing. | |
| void | stop () |
| Stop timing. | |
| double | duration () const |
| Get the amount of time between starts and stops. | |
Protected Types | |
| typedef timeval | TimeValue |
Protected Attributes | |
| struct timezone | tz |
| TimeValue | myStartVal |
| TimeValue | myEndVal |
DtTimedSection are objects used to measure a section of time.
The time measured is between the start call and the stop call. Timed sections may be created on either the stack or the heap. Construction cost should be near trivial, so caching is not necessary.
typedef timeval DtTimedSection::TimeValue [protected] |
CTOR.
| double DtTimedSection::duration | ( | ) | const |
Get the amount of time between starts and stops.
This function should only be called once per 'measurement' as the duration calculation may take non trivial time.
| The | return value is the time in seconds. |
| void DtTimedSection::start | ( | ) |
Start timing.
| void DtTimedSection::stop | ( | ) |
Stop timing.
TimeValue DtTimedSection::myEndVal [protected] |
TimeValue DtTimedSection::myStartVal [protected] |
struct timezone DtTimedSection::tz [protected] |