Starts timing CPU usage and return elapsed time from start. More...
#include <cpuTimePosix.H>

Public Member Functions | |
| cpuTimePosix () | |
| Construct with the current clock time. | |
| void | resetCpuTime () |
| Reset to use the current time for the start time. | |
| void | resetCpuTimeIncrement () const |
| Reset to use the current time for the increment point. | |
| double | elapsedCpuTime () const |
| Return CPU time [seconds] from the start. | |
| double | cpuTimeIncrement () const |
| Return CPU time [seconds] since last call to cpuTimeIncrement(), resetCpuTimeIncrement(). | |
Starts timing CPU usage and return elapsed time from start.
Definition at line 52 of file cpuTimePosix.H.
| cpuTimePosix | ( | ) |
Construct with the current clock time.
Definition at line 51 of file cpuTimePosix.C.
| void resetCpuTime | ( | ) |
Reset to use the current time for the start time.
Definition at line 66 of file cpuTimePosix.C.
| void resetCpuTimeIncrement | ( | ) | const |
Reset to use the current time for the increment point.
Definition at line 73 of file cpuTimePosix.C.
| double elapsedCpuTime | ( | ) | const |
Return CPU time [seconds] from the start.
Definition at line 79 of file cpuTimePosix.C.
References Foam::diff().
Referenced by Time::operator++(), and Time::printExecutionTime().


| double cpuTimeIncrement | ( | ) | const |
Return CPU time [seconds] since last call to cpuTimeIncrement(), resetCpuTimeIncrement().
Definition at line 86 of file cpuTimePosix.C.
References Foam::diff().
