cpuTimeCxx Class Reference

Starts timing CPU usage and return elapsed time from start. More...

Inheritance diagram for cpuTimeCxx:
[legend]

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...
 

Detailed Description

Starts timing CPU usage and return elapsed time from start.

See also
clockTime
Source files

Definition at line 53 of file cpuTimeCxx.H.

Constructor & Destructor Documentation

◆ cpuTimeCxx()

Construct with the current clock time.

Definition at line 46 of file cpuTimeCxx.C.

Member Function Documentation

◆ resetCpuTime()

void resetCpuTime ( )

Reset to use the current time for the start time.

Definition at line 61 of file cpuTimeCxx.C.

◆ elapsedCpuTime()

double elapsedCpuTime ( ) const

Return CPU time (in seconds) from the start.

Definition at line 68 of file cpuTimeCxx.C.

References Foam::diff().

Here is the call graph for this function:

◆ cpuTimeIncrement()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: