Timer.
More...
#include <givtimer.h>
◆ clear()
◆ start()
Start timer.
Starts the timer. If called after another start() or a stop(), it sets the timer to a totally fresh new start.
◆ stop()
Stop timer.
Stops the timer. The time since the previous start() is stored. If called again, stop() will store the time since the previous start() again, acting as a pause().
- Precondition
start() should have been called before...
◆ usertime()
| double usertime |
( |
| ) |
const |
|
inline |
total amount of second spent in user mode.
- Returns
- the user time elapsed between the latest
start() and the latest stop().
- Precondition
stop() is called before.
◆ systime()
total amount of second spent in system mode.
- Returns
- the system time elapsed between the latest
start() and the latest stop().
- Precondition
stop() is called before.
◆ realtime()
| double realtime |
( |
| ) |
const |
|
inline |
real total amount of second spent.
- Returns
- the real total time elapsed between the latest
start() and the latest stop().
- Precondition
stop() is called before.
◆ userElapsedTime()
| double userElapsedTime |
( |
| ) |
|
|
inline |
User mode time spent since start.
A call to stop() is useless.
- Returns
- elpased time (in seconds) since
start() in user mode.
◆ sysElapsedTime()
| double sysElapsedTime |
( |
| ) |
|
|
inline |
System mode time spent since start.
A call to stop() is useless.
- Returns
- elpased time (in seconds) since
start() in system mode.
◆ realElapsedTime()
| double realElapsedTime |
( |
| ) |
|
|
inline |
real total amount of second spent since start.
A call to stop() is useless.
- Returns
- elpased time (in seconds) since
start().
The documentation for this class was generated from the following files: