diff options
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; |