Public Member Functions | Static Public Member Functions | List of all members
clock Class Reference

Read access to the system clock with formatting. More...

Inheritance diagram for clock:
Inheritance graph
[legend]

Public Member Functions

 clock ()
 
double elapsedClockTime () const
 
double clockTimeIncrement () const
 

Static Public Member Functions

static time_t getTime ()
 
static const struct tm rawDate ()
 
static std::string dateTime ()
 
static std::string date ()
 
static std::string clockTime ()
 

Detailed Description

Read access to the system clock with formatting.

Source files

Definition at line 48 of file clock.H.

Constructor & Destructor Documentation

◆ clock()

clock ( )

Definition at line 106 of file clock.C.

Member Function Documentation

◆ getTime()

time_t getTime ( )
static

Definition at line 39 of file clock.C.

◆ rawDate()

const struct tm rawDate ( )
static

Definition at line 45 of file clock.C.

◆ dateTime()

std::string dateTime ( )
static

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ date()

std::string date ( )
static

Definition at line 73 of file clock.C.

References monthNames, os(), Foam::setfill(), and Foam::setw().

Referenced by argList::parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clockTime()

std::string clockTime ( )
static

Definition at line 88 of file clock.C.

References os(), Foam::setfill(), and Foam::setw().

Referenced by argList::parse().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ elapsedClockTime()

double elapsedClockTime ( ) const

Definition at line 115 of file clock.C.

◆ clockTimeIncrement()

double clockTimeIncrement ( ) const

Definition at line 122 of file clock.C.


The documentation for this class was generated from the following files: