Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~20mSec) than cpuTime. More...
Public Member Functions | |
clockTime () | |
Construct with the current clock time. More... | |
double | elapsedTime () const |
Return time (in seconds) from the start. More... | |
double | timeIncrement () const |
Return time (in seconds) since last call to timeIncrement() More... | |
Private Types | |
typedef struct timeval | timeType |
Time structure used. More... | |
Static Private Member Functions | |
static void | getTime (timeType &) |
Retrieve the current time values from the system. More... | |
static double | timeDifference (const timeType &beg, const timeType &end) |
Difference between two times. More... | |
Private Attributes | |
timeType | startTime_ |
timeType | lastTime_ |
timeType | newTime_ |
Starts timing (using rtc) and returns elapsed time from start. Better resolution (2uSec instead of ~20mSec) than cpuTime.
Definition at line 53 of file clockTime.H.
|
private |
Time structure used.
Definition at line 58 of file clockTime.H.
clockTime | ( | ) |
Construct with the current clock time.
Definition at line 45 of file clockTime.C.
|
staticprivate |
Retrieve the current time values from the system.
Definition at line 31 of file clockTime.C.
double elapsedTime | ( | ) | const |
Return time (in seconds) from the start.
Definition at line 55 of file clockTime.C.
double timeIncrement | ( | ) | const |
Return time (in seconds) since last call to timeIncrement()
Definition at line 62 of file clockTime.C.
|
private |
Definition at line 60 of file clockTime.H.
|
mutableprivate |
Definition at line 62 of file clockTime.H.
|
mutableprivate |
Definition at line 63 of file clockTime.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.