diff options
author | Roland Reichwein <mail@reichwein.it> | 2025-01-03 15:36:22 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2025-01-03 15:36:22 +0100 |
commit | 9de0b7f8937b7f6ce990132609f0b26851b31f2b (patch) | |
tree | a69f73358c9b75e5a11c9ed18d934964461360bf /cpuload.h | |
parent | 05895c86bddf50aacb3bb5e6a6bcc073965341ef (diff) |
Monitor CPU
Diffstat (limited to 'cpuload.h')
-rw-r--r-- | cpuload.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cpuload.h b/cpuload.h new file mode 100644 index 0000000..ae98071 --- /dev/null +++ b/cpuload.h @@ -0,0 +1,8 @@ +#pragma once + +#include <vector> + +int get_number_of_cpus(); + +// returns percentages of cpu load, for all cores +std::vector<int> get_cpu_loads(); |