#pragma once #include class UI { public: using clock_type = std::chrono::high_resolution_clock; UI(); void draw(); // slots void count_main_loops(); void slot_active_sensing(); private: int get_main_loops_per_second(); uint64_t m_main_loops; uint64_t m_main_loops_checkpoint; std::chrono::time_point m_main_loops_timestamp; std::chrono::time_point m_active_sensing_timestamp; };