#include <Stopwatch.h>
| Enumerator |
|---|
| MICROSECOND |
|
| MILLISECOND |
|
| HUNDREDTHS |
|
| TENTHS |
|
| SECONDS |
|
| unsigned long Stopwatch::getDuration |
( |
) | |
|
|
inline |
- Returns
- The last calculated duration. Requires that stop() has been called before. Otherwise it returns 0.
| void Stopwatch::start |
( |
) | |
|
|
inline |
Starts or restarts the stopwatch.
| unsigned long Stopwatch::stop |
( |
) | |
|
|
inline |
This does not really stop the stopwatch.
It just calculates the duration since start.
- Returns
- The passed time since start.
This does not really stop the stopwatch.
It just calculates the duration since start.
- Returns
- The passed time since start.
The documentation for this class was generated from the following file: