From 1d041ad5b123e4ecbe69dfa621349f6be9b933d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 17 Aug 2022 14:11:07 +0200 Subject: Minor cleanup. --- c/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/debug.cpp') 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; -- cgit v1.2.3