Starts timing CPU usage and return elapsed time from start. More...
Public Member Functions | |
cpuTime () | |
Construct with the current clock 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.
Uses the POSIX clock() function which return the processor time consumed in clock ticks @ CLOCKS_PER_SEC clock ticks per second.
double elapsedCpuTime | ( | ) | const |
double cpuTimeIncrement | ( | ) | const |
Return CPU time (in seconds) since last call to cpuTimeIncrement()
Definition at line 60 of file cpuTime.C.
Referenced by meshRefinement::baffleAndSplitMesh(), snappySnapDriver::calcNearestSurface(), cutPolyIsoSurface::cutPolyIsoSurface(), snappySnapDriver::doSnap(), FacePatchIntersection< SrcPatchType, TgtPatchType >::FacePatchIntersection(), snappySnapDriver::preSmoothPatch(), snappySnapDriver::repatchToSurface(), snappySnapDriver::scaleMesh(), snappySnapDriver::smoothDisplacement(), chemistryModel< ThermoType >::solve(), TriPatchIntersection< SrcPatchType, TgtPatchType >::TriPatchIntersection(), cellsToCells::update(), and patchToPatch::update().