#include <lemon/time_measure.h>
Collaboration diagram for Timer:
include<lemon/time_measure.h> include<iostream> int main() { ... Timer T; doSomething(); std::cout << T << '\n'; T.reset(); doSomethingElse(); std::cout << T << '\n'; ... }
Definition at line 167 of file time_measure.h.
Public Member Functions | |
Timer () | |
Constructor. It starts with zero time counters. | |
operator TimeStamp () const | |
Computes the ellapsed time. | |
void | reset () |
Resets the time counters. | |
double | getUserTime () const |
Gives back the ellapsed user time of the process. | |
double | getSystemTime () const |
Gives back the ellapsed system time of the process. | |
double | getCUserTime () const |
Gives back the ellapsed user time of the process' children. | |
double | getCSystemTime () const |
Gives back the ellapsed user time of the process' children. | |
double | getRealTime () const |
Gives back the ellapsed real time of the process. |
|
This conversion computes the ellapsed time since the construction of Definition at line 182 of file time_measure.h. |
Here is the call graph for this function:
|
Resets the time counters Definition at line 193 of file time_measure.h. |