OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

clock Class Reference

Inheritance diagram for clock:

Inheritance graph
[legend]
List of all members.

Detailed Description

Definition at line 58 of file clock.H.


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

static time_t getTime ()
 Get the current clock time in seconds.
static struct tm rawDate ()
 Return the current wall-clock date as a raw struct.
static string date ()
 Return the current wall-clock date as a string.
static 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

static time_t getTime (  )  [static]

Get the current clock time in seconds.

static struct tm rawDate (  )  [static]

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

static string date (  )  [static]

Return the current wall-clock date as a string.

static string clockTime (  )  [static]

Return the current wall-clock time as a string.

time_t elapsedClockTime (  )  const

Returns wall-clock time from clock instantiation.

time_t clockTimeIncrement (  )  const

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


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd