CpuUsage: Disable no wait detection by default because the result does need some time to generate

This commit is contained in:
李通洲
2022-10-08 19:07:02 +08:00
parent f7ba00746b
commit 959371d1ea
2 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -4,7 +4,8 @@
#define FF_INCLUDED_detection_cpu_cpuUsage
#if defined(_WIN32) || defined(__MSYS__)
#define FF_DETECTION_CPUUSAGE_NOWAIT 1
// Disabled by default because the result does need some time to generate
#define FF_DETECTION_CPUUSAGE_NOWAIT 0
#endif
const char* ffGetCpuUsageResult(double* result);