diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-09-14 11:19:17 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-09-16 11:22:16 +1000 |
commit | f4cb4e479da988df8f8d0dcb369e0ba4b358128e (patch) | |
tree | e4442f89e29a36fb2ac7650ead054231297d256f /libs/pbd/pbd/windows_timer_utils.h | |
parent | cd05d46c007583a27be23e2ae8cedc5ea9746373 (diff) |
Rename PBD::QPC::get_timer_valid to check_timer_valid and perform timer test
I'm not sure if this test is going to be effective as I don't have hardware to
test on at the moment. As noted in the documentation, Windows XP should be the
only OS where QPC uses a timer source that is non-monotonic(multi-core with
non-syncronized TSC).
Diffstat (limited to 'libs/pbd/pbd/windows_timer_utils.h')
-rw-r--r-- | libs/pbd/pbd/windows_timer_utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/pbd/pbd/windows_timer_utils.h b/libs/pbd/pbd/windows_timer_utils.h index 72d3cc5431..4ebeacd6eb 100644 --- a/libs/pbd/pbd/windows_timer_utils.h +++ b/libs/pbd/pbd/windows_timer_utils.h @@ -61,8 +61,11 @@ namespace QPC { /** * @return true if QueryPerformanceCounter is usable as a timer source + * This should always return true for systems > XP as those versions of windows + * have there own tests to check timer validity and will select an appropriate + * timer source. */ -bool get_timer_valid (); +bool check_timer_valid (); /** * @return the value of the performance counter converted to microseconds |