diff options
Diffstat (limited to 'UI.h')
| -rw-r--r-- | UI.h | 16 | 
1 files changed, 15 insertions, 1 deletions
@@ -1,9 +1,23 @@  #pragma once +#include <chrono> +  class UI  {  public: -  UI(){} +  using clock_type = std::chrono::high_resolution_clock; + +  UI();    void draw(); + +  void count_main_loops(); + +private: + +  int get_main_loops_per_second(); + +  uint64_t m_main_loops; +  uint64_t m_main_loops_checkpoint; +  std::chrono::time_point<clock_type> m_main_loops_timestamp;  };  | 
