summaryrefslogtreecommitdiffhomepage
path: root/UI.h
blob: 077e3a9496238d3a4f5084ab790c77217c7c6058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <chrono>

class UI
{
public:
  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;
};