| 12345678910111213141516171819202122232425262728293031 |
- #ifndef SYSINFOWINDOWSIMPL_H
- #define SYSINFOWINDOWSIMPL_H
- #ifdef __WINDOWS__
- #include <windows.h>
- #endif
- #include <QVector>
- #include <QtGlobal>
- #include "sysinfo.h"
- typedef struct _FILETIME FILETIME;
- class SysInfoWindowsImpl : public SysInfo {
- public:
- SysInfoWindowsImpl();
- // SysInfo interface
- void init() override;
- double cpuLoadAverage() override;
- double memoryUsed() override;
- private:
- QVector<qulonglong> cpuRawData();
- qulonglong convertFileTime(const FILETIME& filetime) const;
- private:
- QVector<qulonglong> mCpuLoadLastValues;
- };
- #endif // SYSINFOWINDOWSIMPL_H
|