Starts timing and returns elapsed time from start. Uses std::chrono::high_resolution_clock for better resolution (2uSec instead of ~20mSec) than cpuTime. More...
#include <clockTime.H>
Public Member Functions | |
| clockTime () | |
| Construct with the current clock value for the start point. | |
| clockTime (const clockValue &clockval) | |
| Implicit construct from the clock value as the start point. | |
| void | resetTime () |
| Reset to use the current clock value for the start and increment points. | |
| void | resetTimeIncrement () const |
| Reset to use the current clock value for the increment point. | |
| double | elapsedTime () const |
| The time [seconds] since the start point. | |
| double | timeIncrement () const |
| The time [seconds] since the last call to elapsedTime(), timeIncrement() or resetTime(), resetTimeIncrement(). | |
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 and increment points.
Definition at line 39 of file clockTimeI.H.
|
inline |
Reset to use the current clock value for the increment point.
Definition at line 46 of file clockTimeI.H.
|
inline |
The time [seconds] since the start point.
Definition at line 52 of file clockTimeI.H.
|
inline |
The time [seconds] since the last call to elapsedTime(), timeIncrement() or resetTime(), resetTimeIncrement().
Definition at line 59 of file clockTimeI.H.
Referenced by TDACChemistryModel< psiReactionThermo, constGasHThermoPhysics >::solve().
