Starts timing CPU usage and return elapsed time from start. More...
Public Member Functions | |
cpuTimePosix () | |
Construct with the current clock time. More... | |
void | resetCpuTime () |
Reset to use the current time for the start time. More... | |
double | elapsedCpuTime () const |
Return CPU time (in seconds) from the start. More... | |
double | cpuTimeIncrement () const |
Return CPU time (in seconds) since last call to cpuTimeIncrement() More... | |
Starts timing CPU usage and return elapsed time from start.
Definition at line 56 of file cpuTimePosix.H.
cpuTimePosix | ( | ) |
Construct with the current clock time.
Definition at line 58 of file cpuTimePosix.C.
void resetCpuTime | ( | ) |
Reset to use the current time for the start time.
Definition at line 73 of file cpuTimePosix.C.
double elapsedCpuTime | ( | ) | const |
Return CPU time (in seconds) from the start.
Definition at line 80 of file cpuTimePosix.C.
References Foam::diff().
double cpuTimeIncrement | ( | ) | const |
Return CPU time (in seconds) since last call to cpuTimeIncrement()
Definition at line 87 of file cpuTimePosix.C.
References Foam::diff().