mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-13 12:42:20 +00:00
Upgrade to QWT 6.0.1, but still uses a locally patched copy since support for 8 axes has not been included, despite it being a relatively simple patch. Fixes #634. Fixes #567.
24 lines
328 B
C++
24 lines
328 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];
|
|
};
|