40#ifndef Foam_cpuTimeCxx_H
41#define Foam_cpuTimeCxx_H
76 mutable value_type last_;
82 static inline double diff(
const value_type& a,
const value_type&
b);
void resetCpuTime()
Reset to use the current time for the start and increment points.
void resetCpuTimeIncrement() const
Reset to use the current time for the increment point.
cpuTimeCxx()
Construct with the current clock time.
double cpuTimeIncrement() const
Return CPU time [seconds] since last call to cpuTimeIncrement(), resetCpuTimeIncrement().
double elapsedCpuTime() const
Return CPU time (in seconds) from the start.