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 |
Return CPU time (in seconds) from the start.
Definition at line 53 of file cpuTime.C.
Referenced by jobInfo::write().
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(), cpuLoad::cpuTimeIncrement(), meshRefinement::createZoneBaffles(), snappySnapDriver::doSnap(), meshRefinement::mergeBaffles(), snappySnapDriver::preSmoothPatch(), snappySnapDriver::repatchToSurface(), cpuLoad::reset(), snappySnapDriver::scaleMesh(), snappySnapDriver::smoothDisplacement(), snappyRefineDriver::snappyRefineDriver(), chemistryModel< ThermoType >::solve(), loadBalancer::update(), and patchToPatch::update().