From 7d98b5d410233fd9608ed5682f5a98b283f83d12 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Fri, 3 Jan 2025 17:31:21 +0100 Subject: Diagnostics --- UI.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'UI.h') 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 + 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 m_main_loops_timestamp; }; -- cgit v1.2.3