periodic-processing

Cross platform C++ High Precision Event Timer implementation

廉价感情. 提交于 2019-12-11 10:37:26
问题 Coming from the Windows platform I usually used the Windows Multimedia Timer to produce periodic callbacks with a resolution of 1 ms +-1ms. So I could indeed produce 1000 quite equidistant callbacks per second. To achieve this accuracy without doing busy-waiting MS used the High Precision Event Timer, which directly accesses a hardware driver. I was hoping to find something like a boost library or so that provides a cross platform implementation for these kind of high precision timers. But