C# Timer for Millisecond Waits

前端 未结 5 1384
南方客
南方客 2020-12-11 14:13

Every n*x milliseconds I perform an action where n = 0, 1, 2, ...; x is some increment.

Example - every 25 milliseconds I perform a calculation.

This action

5条回答
  •  独厮守ぢ
    2020-12-11 14:56

    That level of accuracy will be very difficult to achieve in a non real-time operating system like Windows. Your best bet might be to look into the multimedia timers.

    The other .NET timers won't have the kind of resolution your need.

提交回复
热议问题