Read access to the system clock with formatting. More...
Public Member Functions | |
clock () | |
Construct null, storing the start time. More... | |
double | elapsedClockTime () const |
Returns wall-clock time from clock instantiation. More... | |
double | clockTimeIncrement () const |
Returns wall-clock time from last call of clockTimeIncrement() More... | |
Static Public Member Functions | |
static time_t | getTime () |
Get the current clock time in seconds. More... | |
static const struct tm | rawDate () |
Return the current wall-clock date as a raw struct. More... | |
static std::string | dateTime () |
Return the current wall-clock date/time as a string. More... | |
static std::string | date () |
Return the current wall-clock date as a string. More... | |
static std::string | clockTime () |
Return the current wall-clock time as a string. More... | |
Read access to the system clock with formatting.
|
static |
|
static |
|
static |
Return the current wall-clock date/time as a string.
format according to ISO-8601 (yyyy-mm-ddThh:mm:ss)
Definition at line 60 of file clock.C.
References Foam::setfill(), and Foam::setw().
Referenced by profilingSysInfo::write(), OBJedgeFormat::write(), STARCDsurfaceFormatCore::writeCase(), and STARCDedgeFormat::writeCase().
|
static |
Return the current wall-clock date as a string.
Definition at line 80 of file clock.C.
References monthNames, Foam::setfill(), and Foam::setw().
Referenced by argList::parse().
|
static |
Return the current wall-clock time as a string.
Definition at line 95 of file clock.C.
References Foam::setfill(), and Foam::setw().
Referenced by argList::parse().
double elapsedClockTime | ( | ) | const |
Returns wall-clock time from clock instantiation.
Definition at line 122 of file clock.C.
Referenced by adjointMeshMovementSolver::solve(), and adjointEikonalSolver::solve().
double clockTimeIncrement | ( | ) | const |
Returns wall-clock time from last call of clockTimeIncrement()