#include <timer.h>
Public Methods | |
| Timer () | |
| Constructor. More... | |
| virtual | ~Timer () |
| Destructor. More... | |
| unsigned | interval () |
| Get duration of current interval. More... | |
| unsigned | restartInterval () |
| Restart interval timing. More... | |
| unsigned | duration () |
| Get duration of timer. More... | |
| unsigned | restart () |
| Restart timer. More... | |
Private Attributes | |
| clock_t | startTime |
| Clock time at which timer started. More... | |
| clock_t | intervalTime |
| Clock time at which current interval started. More... | |
Definition at line 49 of file timer.h.
|
|
Constructor.
Definition at line 45 of file timer.cpp. References _USEMYTRACE_. |
|
|
Destructor.
Definition at line 55 of file timer.cpp. References _USEMYTRACE_. |
|
|
Get duration of timer.
Definition at line 94 of file timer.cpp. References _USEMYTRACE_, and startTime. Referenced by restart. |
|
|
Get duration of current interval.
Definition at line 63 of file timer.cpp. References _USEMYTRACE_, and intervalTime. Referenced by restartInterval. |
|
|
Restart timer.
Definition at line 110 of file timer.cpp. References _USEMYTRACE_, duration, intervalTime, and startTime. |
|
|
Restart interval timing.
Definition at line 79 of file timer.cpp. References _USEMYTRACE_, interval, intervalTime, and restartInterval. Referenced by restartInterval. |
|
|
Clock time at which current interval started.
Definition at line 106 of file timer.h. Referenced by interval, restart, and restartInterval. |
|
|
Clock time at which timer started.
|
1.2.14 written by Dimitri van Heesch,
© 1997-2002