Access to high-resolution clock value with some basic operations. Used to calculate time durations, elapsed times etc. More...
Public Types | |
typedef std::chrono::high_resolution_clock::duration | value_type |
Public Member Functions | |
clockValue () | |
clockValue (bool) | |
clockValue (const value_type &value) | |
const value_type & | value () const |
void | clear () |
void | update () |
long | seconds () const |
clockValue | elapsed () const |
double | elapsedTime () const |
std::string | str () const |
operator double () const | |
clockValue & | operator-= (const clockValue &rhs) |
clockValue & | operator+= (const clockValue &rhs) |
Static Public Member Functions | |
static clockValue | now () |
Access to high-resolution clock value with some basic operations. Used to calculate time durations, elapsed times etc.
Definition at line 49 of file clockValue.H.
typedef std::chrono::high_resolution_clock::duration value_type |
Definition at line 56 of file clockValue.H.
|
inline |
Definition at line 31 of file clockValueI.H.
Referenced by clockValue::now().
|
inlineexplicit |
Definition at line 37 of file clockValueI.H.
|
inlineexplicit |
Definition at line 43 of file clockValueI.H.
|
inlinestatic |
Definition at line 23 of file clockValueI.H.
References clockValue::clockValue().
Referenced by profiling::beginTimer(), clockValue::elapsed(), and profiling::writeData().
|
inline |
Definition at line 91 of file clockValue.H.
Referenced by Foam::operator+(), and Foam::operator-().
|
inline |
Definition at line 51 of file clockValueI.H.
|
inline |
Definition at line 57 of file clockValueI.H.
|
inline |
Definition at line 63 of file clockValueI.H.
|
inline |
Definition at line 69 of file clockValueI.H.
References clockValue::now().
Referenced by profiling::endTimer().
|
inline |
Definition at line 75 of file clockValueI.H.
std::string str | ( | ) | const |
Definition at line 27 of file clockValue.C.
References os(), Foam::setfill(), and Foam::setw().
|
inline |
Definition at line 83 of file clockValueI.H.
|
inline |
Definition at line 93 of file clockValueI.H.
|
inline |
Definition at line 100 of file clockValueI.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.