41 #ifndef cpuTimePosix_H 42 #define cpuTimePosix_H 46 #include <sys/times.h> 60 struct value_type : tms
76 mutable value_type last_;
82 inline static double diff(
const value_type& a,
const value_type&
b);
void resetCpuTime()
Reset to use the current time for the start time.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
double cpuTimeIncrement() const
Return CPU time (in seconds) since last call to cpuTimeIncrement()
double elapsedCpuTime() const
Return CPU time (in seconds) from the start.
cpuTimePosix()
Construct with the current clock time.
Starts timing CPU usage and return elapsed time from start.