#ifndef SYSINFOWINDOWSIMPL_H #define SYSINFOWINDOWSIMPL_H #ifdef __WINDOWS__ #include #endif #include #include #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 cpuRawData(); qulonglong convertFileTime(const FILETIME& filetime) const; private: QVector mCpuLoadLastValues; }; #endif // SYSINFOWINDOWSIMPL_H