summaryrefslogtreecommitdiffhomepage
path: root/UI.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2025-01-03 17:31:21 +0100
committerRoland Reichwein <mail@reichwein.it>2025-01-03 17:31:21 +0100
commit7d98b5d410233fd9608ed5682f5a98b283f83d12 (patch)
tree8e3f24c126ffc4494a8b07ba48906e0ed97bc409 /UI.h
parent9de0b7f8937b7f6ce990132609f0b26851b31f2b (diff)
Diagnostics
Diffstat (limited to 'UI.h')
-rw-r--r--UI.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/UI.h b/UI.h
index 60b168c..077e3a9 100644
--- a/UI.h
+++ b/UI.h
@@ -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;
};