Stopwatch Class Reference
A timer class designed for code profiling.
More...
#include <stopwatch.h>
List of all members.
|
Public Member Functions |
|
| Stopwatch () |
| | The constructor.
|
|
| ~Stopwatch () |
| | The destructor.
|
|
void | Start () |
| | Starts the timer counter.
|
|
void | Stop () |
| | Stops the timer counter.
|
| double | Elapsed () |
| | Indicates the number of seconds elapsed.
|
| unsigned long | ElapsedMS () |
| | Indicates the number of milliseconds elapsed.
|
Detailed Description
A timer class designed for code profiling.
Member Function Documentation
Indicates the number of seconds elapsed.
- Returns:
- Number of seconds elapsed between the most recent set of Start() and Stop() calls.
| unsigned long ElapsedMS |
( |
|
) |
|
Indicates the number of milliseconds elapsed.
- Returns:
- Number of milliseconds elapsed between the most recent set of Start() and Stop() calls.