OpenFOAM logo
Open Source CFD Toolkit

clock Class Reference

Inheritance diagram for clock:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 clock ()
 Null constructor which stores the start time.
time_t elapsedClockTime () const
 Returns wall-clock time from clock instantiation.
time_t clockTimeIncrement () const
 Returns wall-clock time from last call of clockTimeIncrement().

Static Public Member Functions

time_t getTime ()
 Get the current clock time in seconds.
const struct tm rawDate ()
 Return the current wall-clock date as a raw struct.
string date ()
 Return the current wall-clock date as a string.
string clockTime ()
 Return the current wall-clock time as a string.

Constructor & Destructor Documentation

clock  ) 
 

Null constructor which stores the start time.


Member Function Documentation

string clockTime  )  [static]
 

Return the current wall-clock time as a string.

time_t clockTimeIncrement  )  const
 

Returns wall-clock time from last call of clockTimeIncrement().

string date  )  [static]
 

Return the current wall-clock date as a string.

time_t elapsedClockTime  )  const
 

Returns wall-clock time from clock instantiation.

time_t getTime  )  [static]
 

Get the current clock time in seconds.

const struct tm rawDate  )  [static]
 

Return the current wall-clock date as a raw struct.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org