summaryrefslogtreecommitdiff
path: root/libs/pbd/windows_timer_utils.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-09-16 22:22:00 +1000
committerTim Mayberry <mojofunk@gmail.com>2015-09-16 22:50:37 +1000
commit9bd893a6a28912ed2905a6d01d7a7abea79e58eb (patch)
treee4921ea08d1a3e8d0f38f7d9b083e39b895f4609 /libs/pbd/windows_timer_utils.cc
parent7b82277c7e1a4ec41fadab33cf0a4730654da7eb (diff)
Make sure the QPC frequency is cached so the timer can be used
Diffstat (limited to 'libs/pbd/windows_timer_utils.cc')
-rw-r--r--libs/pbd/windows_timer_utils.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/pbd/windows_timer_utils.cc b/libs/pbd/windows_timer_utils.cc
index ee7cd962c5..2817b8e3a9 100644
--- a/libs/pbd/windows_timer_utils.cc
+++ b/libs/pbd/windows_timer_utils.cc
@@ -189,6 +189,7 @@ get_microseconds ()
int64_t
get_microseconds ()
{
+ qpc_frequency_cached();
if (qpc_frequency_success()) {
return QPC::get_microseconds ();
}