clockTime Class Reference

Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~20mSec) than cpuTime. More...

Public Member Functions

 clockTime ()
 Construct with the current clock time for the starting value. More...
 
 clockTime (const clockValue &clockval)
 Construct with the given clock value for the starting value. More...
 
void resetTime ()
 Reset to use the current time for the start time. More...
 
double elapsedTime () const
 Return time (in seconds) from the start. More...
 
double timeIncrement () const
 Return time (in seconds) since last call to timeIncrement() More...
 

Detailed Description

Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~20mSec) than cpuTime.

Source files

Definition at line 52 of file clockTime.H.

Constructor & Destructor Documentation

◆ clockTime() [1/2]

clockTime ( )

Construct with the current clock time for the starting value.

Definition at line 32 of file clockTime.C.

◆ clockTime() [2/2]

clockTime ( const clockValue clockval)

Construct with the given clock value for the starting value.

Definition at line 39 of file clockTime.C.

Member Function Documentation

◆ resetTime()

void resetTime ( )

Reset to use the current time for the start time.

Definition at line 48 of file clockTime.C.

◆ elapsedTime()

double elapsedTime ( ) const

Return time (in seconds) from the start.

Definition at line 55 of file clockTime.C.

◆ timeIncrement()

double timeIncrement ( ) const

Return time (in seconds) since last call to timeIncrement()

Definition at line 62 of file clockTime.C.

Referenced by TDACChemistryModel< CompType, ThermoType >::solve().

Here is the caller graph for this function:

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