- Main Page
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

# Timer Class Reference

Timer class for reporting elapsed time and CPU time. More...

`#include <Timer.h>`

List of all members.

## Public Member Functions
| Timer (const bool summary=false)
| Timer (char *m, const bool summary=false)
void | reset (void)
| reset timer to 0.
double | getElapsedTime (void)
| return elapsed time in seconds.
void | report (void)
double | getCPUTime (void)
| return actual cpu time used.
## Private Attributes
double | mStart
tms | mStartUsage
char * | msg
bool | summary
## Static Private Attributes
static long | indent = 0
static double | best = FLT_MAX
| indentation level for nested timers
static double | worst = 0.0
static double | total = 0.0
static long | count = 0

## Detailed Description

Timer class for reporting elapsed time and CPU time.

## Member Function Documentation

void Timer::report | ( | void |  | ) |

| report the elapsed time. note: many timers may be active at any given time.

The documentation for this class was generated from the following file:

- Timer.h