41#ifndef Foam_cpuTimePosix_H
42#define Foam_cpuTimePosix_H
60 struct value_type : tms
77 mutable value_type last_;
83 inline static double diff(
const value_type& a,
const value_type&
b);
void resetCpuTime()
Reset to use the current time for the start time.
void resetCpuTimeIncrement() const
Reset to use the current time for the increment point.
cpuTimePosix()
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 [seconds] from the start.