![]() |
VR-Link API Documentation for DIS
|
DtTimedSection are objects used to measure a section of time. More...
Inheritance diagram for DtTimedSection:
Collaboration diagram for DtTimedSection:Public Member Functions | |
| DtTimedSection () | |
| CTOR. More... | |
| virtual void | start () |
| Start timing. More... | |
| virtual void | stop () |
| Stop timing. More... | |
| virtual double | duration () const |
| Get the amount of time between starts and stops. More... | |
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.
|
protected |
| DtTimedSection::DtTimedSection | ( | ) |
CTOR.
|
virtual |
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. |
|
virtual |
Start timing.
|
virtual |
Stop timing.
|
protected |
|
protected |
|
protected |