Add cpu frequency

This commit is contained in:
Genesis
2021-02-02 23:33:33 +01:00
parent cb1c7ea12c
commit 08ea5ebe1f
5 changed files with 53 additions and 1 deletions

View File

@ -22,7 +22,9 @@ class Cpu : public ALabel {
private:
uint16_t getCpuLoad();
std::tuple<uint16_t, std::string> getCpuUsage();
std::tuple<float, float, float> getCpuFrequency();
std::vector<std::tuple<size_t, size_t>> parseCpuinfo();
std::vector<float> parseCpuFrequencies();
std::vector<std::tuple<size_t, size_t>> prev_times_;