Starts timing and returns elapsed time from start. Uses std::chrono::high_resolution_clock for better resolution (2uSec instead of ~20mSec) than cpuTime. More...
Public Member Functions | |
clockTime () | |
Construct with the current clock value for the start point. More... | |
clockTime (const clockValue &clockval) | |
Implicit construct from the clock value as the start point. More... | |
void | resetTime () |
Reset to use the current clock value for the start point. More... | |
double | elapsedTime () const |
The time [seconds] since the start point. More... | |
double | timeIncrement () const |
The time [seconds] since the last call to timeIncrement() More... | |
Starts timing and returns elapsed time from start. Uses std::chrono::high_resolution_clock for better resolution (2uSec instead of ~20mSec) than cpuTime.
Definition at line 58 of file clockTime.H.
|
inline |
Construct with the current clock value for the start point.
Definition at line 23 of file clockTimeI.H.
|
inline |
Implicit construct from the clock value as the start point.
Definition at line 30 of file clockTimeI.H.
|
inline |
Reset to use the current clock value for the start point.
Definition at line 39 of file clockTimeI.H.
|
inline |
The time [seconds] since the start point.
Definition at line 46 of file clockTimeI.H.
|
inline |
The time [seconds] since the last call to timeIncrement()
Definition at line 53 of file clockTimeI.H.
Referenced by TDACChemistryModel< CompType, ThermoType >::solve().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.