#include <Timer.h>
Public Member Functions | |
| Timer () | |
| Default constructor. | |
| Timer (const Timer &rhs) | |
| Copy constructor. | |
| Timer & | operator= (const Timer &rhs) |
| Assignment operator. | |
| void | start () |
| Start the timer. | |
| void | stop () |
| Stop the timer. | |
| void | reset () |
| Reset both the start and stop times to zero. | |
| double | getDiffMicroseconds () |
| Get the difference between the start and stop times in microseconds. | |
| double | getDiffMilliseconds () |
| Get the difference between the start and stop times in milliseconds. | |
| double | getDiffSeconds () |
| Get the difference between the start and stop times in seconds. | |
| void | swap () |
| Swap the starting time and ending time of this Timer. | |
| time_t | getLastStopped () |
Private Attributes | |
| timeval | startTime_ |
| The time this timer was started. | |
| timeval | endTime_ |
| The time this timer was stopped. | |
|
|
Default constructor. Creates a Timer object with a start and end time of zero |
|
|
Get the difference between the start and stop times in microseconds.
|
|
|
Get the difference between the start and stop times in milliseconds.
|
|
|
Get the difference between the start and stop times in seconds.
|
|
|
|
1.4.6