Starting with the Windows platform, I usually used the Windows Multimedia Timer to create periodic callbacks with a resolution of 1 ms + -1 ms. So I really could produce 1000 of the same callbacks per second. To achieve this accuracy without waiting for busyness, MS used the High Precision Event Timer , which directly accesses the hardware drivers.
I was hoping to find something like a boost library or something that provides a cross-platform implementation for such high-precision timers. But all I found are Boost-ASIO timers. Since they do not talk about accuracy at all, I would suggest that they would not meet the requirement of high accuracy. 10 ms jitter will be much more expensive.
So, is there something like a cross-platform implementation of a high precision event timer? Or can Boost-ASIO be accurate enough? Perhaps Boost internally uses HPET and just doesn't mention anything.
source
share