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).
This commit is contained in:
Tim Mayberry
2015-09-14 11:19:17 +10:00
parent cd05d46c00
commit f4cb4e479d
3 changed files with 27 additions and 4 deletions

View File

@@ -13,7 +13,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION (WindowsTimerUtilsTest);
void
WindowsTimerUtilsTest::testQPC ()
{
CPPUNIT_ASSERT (PBD::QPC::get_timer_valid());
// performs basically the same test
CPPUNIT_ASSERT (PBD::QPC::check_timer_valid());
int64_t last_timer_val = PBD::QPC::get_microseconds ();
CPPUNIT_ASSERT (last_timer_val >= 0);