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... | |
void | resetCpuTimeIncrement () const |
Reset to use the current time for the increment point. More... | |
double | elapsedCpuTime () const |
Return CPU time [seconds] from the start. More... | |
double | cpuTimeIncrement () const |
Return CPU time [seconds] since last call to cpuTimeIncrement(), resetCpuTimeIncrement(). More... | |
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().
double cpuTimeIncrement | ( | ) | const |
Return CPU time [seconds] since last call to cpuTimeIncrement(), resetCpuTimeIncrement().
Definition at line 86 of file cpuTimePosix.C.
References Foam::diff().
Referenced by meshRefinement::baffleAndSplitMesh(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::doSnap(), meshRefinement::mergeFreeStandingBaffles(), snappySnapDriver::preSmoothPatch(), snappySnapDriver::repatchToSurface(), snappySnapDriver::scaleMesh(), and snappySnapDriver::smoothDisplacement().