Read access to the system clock with formatting. More...
Public Member Functions | |
clock () | |
Construct with the current clock time for the start point. More... | |
double | elapsedClockTime () const |
Returns wall-clock time since clock instantiation. More... | |
double | clockTimeIncrement () const |
Returns wall-clock time since last clockTimeIncrement() call. More... | |
Static Public Member Functions | |
static time_t | getTime () |
Get the current clock time in seconds. More... | |
static const struct tm | rawDate () |
The current wall-clock date as a raw struct. More... | |
static std::string | dateTime () |
The current wall-clock date/time (in local time) as a string in ISO-8601 format (yyyy-mm-ddThh:mm:ss). More... | |
static std::string | date () |
The current wall-clock date as a string formatted as (MON dd yyyy), where MON is Jan, Feb, etc. More... | |
static std::string | clockTime () |
The current wall-clock (in local time) as a string formatted as as (hh:mm:ss). More... | |
Read access to the system clock with formatting.
clock | ( | ) |
|
static |
|
static |
The current wall-clock date as a raw struct.
|
static |
The current wall-clock date/time (in local time) as a string in ISO-8601 format (yyyy-mm-ddThh:mm:ss).
Without time-zone information.
Definition at line 53 of file clock.C.
References os(), Foam::setfill(), and Foam::setw().
Referenced by profilingSysInfo::write(), OBJedgeFormat::write(), STARCDsurfaceFormatCore::writeCase(), and STARCDedgeFormat::writeCase().
|
static |
The current wall-clock date as a string formatted as (MON dd yyyy), where MON is Jan, Feb, etc.
Definition at line 73 of file clock.C.
References monthNames, os(), Foam::setfill(), and Foam::setw().
Referenced by argList::parse().
|
static |
The current wall-clock (in local time) as a string formatted as as (hh:mm:ss).
Without time-zone information.
Definition at line 88 of file clock.C.
References os(), Foam::setfill(), and Foam::setw().
Referenced by argList::parse().
double elapsedClockTime | ( | ) | const |
double clockTimeIncrement | ( | ) | const |
Returns wall-clock time since last clockTimeIncrement() call.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.