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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user