From 9003b747e6d330bac33c30018b4575e2ecfd95eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jul 2022 16:04:23 +0200 Subject: Add debugging functions. --- c/debug.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 c/debug.h (limited to 'c/debug.h') diff --git a/c/debug.h b/c/debug.h new file mode 100644 index 0000000..d539573 --- /dev/null +++ b/c/debug.h @@ -0,0 +1,18 @@ +#ifndef DEBUG_H +#define DEBUG_H + +struct Benchmark +{ + Benchmark(const char* szName, int iId, int iAvgMax); + ~Benchmark(); + void Disable(); + long long ticks; + bool disabled = false; + int id; + int avgmax; + const char* name; +}; + +const char* SzFromUmsg(unsigned uMsg); + +#endif -- cgit v1.2.3