DtTimedSection are objects used to measure a section of time.
More...
Public Member Functions |
| | DtTimedSection () |
| | CTOR.
|
| virtual void | start () |
| | Start timing.
|
| virtual void | stop () |
| | Stop timing.
|
| virtual double | duration () const |
| | Get the amount of time between starts and stops.
|
Detailed Description
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.
- Examples
-
Member Typedef Documentation
Constructor & Destructor Documentation
| DtTimedSection::DtTimedSection |
( |
| ) |
|
Member Function Documentation
| virtual double DtTimedSection::duration |
( |
| ) |
const |
|
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.
- Warning
- This function should only be called after a start/stop pair.
- Return values
-
| The | return value is the time in seconds. |
| virtual void DtTimedSection::start |
( |
| ) |
|
|
virtual |
| virtual void DtTimedSection::stop |
( |
| ) |
|
|
virtual |
Member Data Documentation
| struct timezone DtTimedSection::tz |
|
protected |
The documentation for this class was generated from the following file: