Accurate Windows timer? System.Timers.Timer() is limited to 15 msec

前端 未结 6 1542
粉色の甜心
粉色の甜心 2020-12-18 14:42

I need an accurate timer to interface a Windows application to a piece of lab equipment.

I used System.Timers.Timer() to create a timer that ticks every 10 msec, but

6条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-18 15:08

    There's a nice write up at the MSDN: Implement a Continuously Updating, High-Resolution Time Provider for Windows

    Here's the sample source code for the article (C++).

提交回复
热议问题