diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-17 14:11:07 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-17 14:11:07 +0200 |
commit | 1d041ad5b123e4ecbe69dfa621349f6be9b933d6 (patch) | |
tree | 8cdbbefa04773f7fec43a3b6ff1a80063e9b4dee /c/debug.cpp | |
parent | 2e8afa446f2444a8be5e6180bf90cfa48b6e02f0 (diff) | |
download | EpisodeBrowser-1d041ad5b123e4ecbe69dfa621349f6be9b933d6.tar.gz |
Minor cleanup.
Diffstat (limited to 'c/debug.cpp')
-rw-r--r-- | c/debug.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c/debug.cpp b/c/debug.cpp index b23df37..a7f7595 100644 --- a/c/debug.cpp +++ b/c/debug.cpp @@ -11,13 +11,13 @@ struct Avg { long long sum; }; +static LARGE_INTEGER liFreq; static long long freq; Benchmark::Benchmark(const char* const name, const int id, const int avgmax) : id(id), avgmax(avgmax), name(name) { if (!freq) { - static LARGE_INTEGER liFreq; if (!QueryPerformanceFrequency(&liFreq)) throw Win32Error{}; freq = liFreq.QuadPart; |