diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-30 16:04:23 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-30 16:04:23 +0200 |
commit | 9003b747e6d330bac33c30018b4575e2ecfd95eb (patch) | |
tree | 70ec37ae4d45aeadfe5d80f1a2fb60694aa5e0e5 /c/debug.h | |
parent | 1561f2500fd3f5c2b7d76d8cdf452ea41a56d479 (diff) | |
download | EpisodeBrowser-9003b747e6d330bac33c30018b4575e2ecfd95eb.tar.gz |
Add debugging functions.
Diffstat (limited to 'c/debug.h')
-rw-r--r-- | c/debug.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 |