30 inline double Foam::cpuTime::timeDifference
36 return double(cur - prev)/CLOCKS_PER_SEC;
45 prevTime_(startTime_),
56 return timeDifference(startTime_, curTime_);
64 return timeDifference(prevTime_, curTime_);
Read access to the system clock with formatting.
cpuTime()
Construct with the current clock time.
double cpuTimeIncrement() const
Return CPU time (in seconds) since last call to cpuTimeIncrement()
double elapsedCpuTime() const
Return CPU time (in seconds) from the start.