OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

clockTime Class Reference

Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~20mSec) than cpuTime. More...

List of all members.


Public Member Functions

 clockTime ()
 Construct from components.
double elapsedTime () const
 Returns CPU time from start of run.
double timeIncrement () const
 Returns CPU time from last call of clockTimeIncrement().

Detailed Description

Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~20mSec) than cpuTime.

Source files

Definition at line 45 of file clockTime.H.


Constructor & Destructor Documentation

clockTime (  ) 

Construct from components.

Definition at line 50 of file clockTime.C.

References E().

Here is the call graph for this function:


Member Function Documentation

double elapsedTime (  )  const

Returns CPU time from start of run.

Definition at line 60 of file clockTime.C.

double timeIncrement (  )  const

Returns CPU time from last call of clockTimeIncrement().

Definition at line 67 of file clockTime.C.


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