From 26783665554a2be6f53f429b11944b3eefbb5a09 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 26 Jun 2021 18:53:28 -0600 Subject: [PATCH] window compilation fix --- libs/pbd/microseconds.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/pbd/microseconds.cc b/libs/pbd/microseconds.cc index e064b78aae..2d0f77673a 100644 --- a/libs/pbd/microseconds.cc +++ b/libs/pbd/microseconds.cc @@ -40,9 +40,9 @@ PBD::microsecond_timer_init () LARGE_INTEGER freq; if (!QueryPerformanceFrequency(&freq) || freq.QuadPart < 1) { info << X_("Failed to determine frequency of QPC\n") << endmsg; - timer_rate_us = 0; + timer_rate_usecs = 0; } else { - timer_rate_us = 1000000.0 / freq.QuadPart; + timer_rate_usecs = 1000000.0 / freq.QuadPart; } #endif } @@ -55,7 +55,7 @@ PBD::get_microseconds () if (timer_rate_usecs) { if (QueryPerformanceCounter (&time)) { - return (microseconds_t) (time.QuadPart * timer_rate_us); + return (microseconds_t) (time.QuadPart * timer_rate_usecs); } }