CpuUsage: add support for Windows

This commit is contained in:
李通洲
2022-10-07 16:52:52 +08:00
parent 32d3edc690
commit 174d885649
6 changed files with 62 additions and 19 deletions
+4 -1
View File
@@ -3,6 +3,9 @@
#ifndef FF_INCLUDED_detection_cpu_cpuUsage
#define FF_INCLUDED_detection_cpu_cpuUsage
const char* ffGetCpuUsageInfo(long* inUseAll, long* totalAll);
#include <stdint.h>
// We need to use uint64_t because sizeof(long) == 4 on Windows
const char* ffGetCpuUsageInfo(uint64_t* inUseAll, uint64_t* totalAll);
#endif