qwt-cmake/examples/cpuplot/cpustat.h
2018-08-02 11:01:31 -04:00

23 lines
332 B
C++

#include <qdatetime.h>
class CpuStat
{
public:
CpuStat();
void statistic( double &user, double &system );
QTime upTime() const;
enum Value
{
User,
Nice,
System,
Idle,
NValues
};
private:
void lookUp( double[NValues] ) const;
double procValues[NValues];
};