summaryrefslogtreecommitdiff
path: root/libs/pbd/windows_timer_utils.cc
AgeCommit message (Collapse)Author
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2015-09-16Add PBD::QPC::initialize to initialize timer and call it from PBD::initTim Mayberry
Check timer for invalid frequency Precalculate timer tick rate to save a few instructions Don't use static variables inside functions to avoid checking for initialization Use static functions inside anonymous namespace for internal linkage
2015-09-16Make sure the QPC frequency is cached so the timer can be usedTim Mayberry
2015-09-16Rename PBD::QPC::get_timer_valid to check_timer_valid and perform timer testTim Mayberry
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).
2015-09-16Fix PBD::MMTIMER::reset_resolution and add some documentationTim Mayberry
timeEndPeriod must be called with the same timer resolution value used in timeBeginPeriod. When the process exits the timer resolution is restored anyway so this is not very important.
2015-09-16Move Windows timer utility functions from PA backend into libpbdTim Mayberry