42 #include <sys/times.h> 58 typedef struct tms timeType;
61 static const long Hz_;
65 mutable timeType lastTime_;
66 mutable timeType newTime_;
71 static void getTime(timeType&);
74 static double timeDifference(
const timeType& beg,
const timeType& end);
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.
Starts timing CPU usage and return elapsed time from start.