qt_demoe/third/qwtdemo/examples/cpuplot/cpustat.h

24 lines
332 B
C
Raw Normal View History

2019-11-07 02:55:57 +00:00
#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];
};