Read access to the system clock with formatting. More...
Public Member Functions | |
clock () | |
Null constructor which stores the start time. More... | |
time_t | elapsedClockTime () const |
Returns wall-clock time from clock instantiation. More... | |
time_t | 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 string | dateTime () |
Return the current wall-clock date/time as a string. More... | |
static string | date () |
Return the current wall-clock date as a string. More... | |
static 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 57 of file clock.C.
References Foam::setw().
Referenced by edgeMeshFormat::write(), OBJedgeFormat::write(), STARCDedgeFormat::writeCase(), STARCDsurfaceFormatCore::writeCase(), VTKedgeFormat::writeHeader(), VTKsurfaceFormatCore::writeHeader(), WRLsurfaceFormatCore::writeHeader(), and OFSsurfaceFormatCore::writeHeader().
|
static |
Return the current wall-clock date as a string.
Definition at line 77 of file clock.C.
References Foam::setw().
Referenced by argList::parse().
|
static |
Return the current wall-clock time as a string.
Definition at line 93 of file clock.C.
References Foam::setw().
Referenced by argList::parse().
time_t elapsedClockTime | ( | ) | const |
time_t clockTimeIncrement | ( | ) | const |
Returns wall-clock time from last call of clockTimeIncrement()