Go to the documentation of this file.
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);
double elapsedCpuTime() const
Return CPU time (in seconds) from the start.
Starts timing CPU usage and return elapsed time from start.
double cpuTimeIncrement() const
Return CPU time (in seconds) since last call to cpuTimeIncrement()
cpuTimePosix()
Construct with the current clock time.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void resetCpuTime()
Reset to use the current time for the start time.