cpuTime Class Reference

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

Inheritance diagram for cpuTime:

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

Detailed Description

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.

See also
clockTime
Source files

Definition at line 54 of file cpuTime.H.

Constructor & Destructor Documentation

◆ cpuTime()

cpuTime ( )

Construct with the current clock time.

Definition at line 42 of file cpuTime.C.

Member Function Documentation

◆ elapsedCpuTime()

double elapsedCpuTime ( ) const

Return CPU time (in seconds) from the start.

Definition at line 53 of file cpuTime.C.

◆ cpuTimeIncrement()


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