Starts timing CPU usage and return elapsed time from start. More...
Public Member Functions | |
cpuTimeCxx () | |
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 53 of file cpuTimeCxx.H.
cpuTimeCxx | ( | ) |
Construct with the current clock time.
Definition at line 46 of file cpuTimeCxx.C.
void resetCpuTime | ( | ) |
Reset to use the current time for the start time.
Definition at line 61 of file cpuTimeCxx.C.
double elapsedCpuTime | ( | ) | const |
Return CPU time (in seconds) from the start.
Definition at line 68 of file cpuTimeCxx.C.
References Foam::diff().
double cpuTimeIncrement | ( | ) | const |
Return CPU time (in seconds) since last call to cpuTimeIncrement()
Definition at line 75 of file cpuTimeCxx.C.
References Foam::diff().
Referenced by meshRefinement::baffleAndSplitMesh(), snappySnapDriver::calcNearestSurface(), snappySnapDriver::doSnap(), meshRefinement::mergeFreeStandingBaffles(), snappySnapDriver::preSmoothPatch(), snappySnapDriver::repatchToSurface(), snappySnapDriver::scaleMesh(), and snappySnapDriver::smoothDisplacement().