123456789101112131415161718192021222324252627282930 |
- #ifndef SYSINFOWINDOWSIMPL_H
- #define SYSINFOWINDOWSIMPL_H
- #include <QtGlobal>
- #include <QVector>
- #include "sysinfo.h"
- typedef struct _FILETIME FILETIME;
- class SysInfoWindowsImpl : public SysInfo
- {
- public:
- SysInfoWindowsImpl();
- void init() override;
- double cpuLoadAverage() override;
- double memoryUsed() override;
- private:
- qulonglong convertFileTime(const FILETIME& filetime) const;
- int cpuPercent;
- int memoryPercent;
- int memoryAll;
- int memoryUse;
- int memoryFree;
- };
- #endif // SYSINFOWINDOWSIMPL_H
|