Timer.
More...
#include <givtimer.h>
◆ Timer()
◆ clear()
◆ start()
◆ stop()
◆ 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()
.
◆ operator=()
◆ operator-() [1/2]
◆ operator-() [2/2]
const Timer operator- |
( |
| ) |
|
◆ operator+()
◆ operator/()
const Timer operator/ |
( |
const double |
nbiter | ) |
const |
◆ operator+=()
◆ operator-=()
◆ operator/=()
Timer& operator/= |
( |
const double |
d | ) |
|
|
inline |
◆ print()
std::ostream & print |
( |
std::ostream & |
o | ) |
const |
◆ count()
The documentation for this class was generated from the following files: