#pragma once #include #include "config.hpp" #include "modules/meta.hpp" POLYBAR_NS namespace modules { struct cpu_time { unsigned long long user; unsigned long long nice; unsigned long long system; unsigned long long idle; unsigned long long total; }; using cpu_time_t = unique_ptr; class cpu_module : public timer_module { public: using timer_module::timer_module; void setup(); bool update(); bool build(builder* builder, string tag) const; protected: bool read_values(); float get_load(size_t core) const; private: static constexpr auto TAG_LABEL = "