cpuTimePosix Class Reference

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...
 
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 56 of file cpuTimePosix.H.

Constructor & Destructor Documentation

◆ cpuTimePosix()

Construct with the current clock time.

Definition at line 58 of file cpuTimePosix.C.

Member Function Documentation

◆ resetCpuTime()

void resetCpuTime ( )

Reset to use the current time for the start time.

Definition at line 73 of file cpuTimePosix.C.

◆ elapsedCpuTime()

double elapsedCpuTime ( ) const

Return CPU time (in seconds) from the start.

Definition at line 80 of file cpuTimePosix.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 87 of file cpuTimePosix.C.

References Foam::diff().

Here is the call graph for this function:

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