Why does increasing timer resolution via timeBeginPeriod impact power consumption?

前端 未结 2 1604
情歌与酒
情歌与酒 2020-12-14 11:15

I am currently writing an application in C# where I need to fire a timer approx. every 5 milliseconds. From some research it appears the best way to do this involves p/invo

2条回答
  •  盖世英雄少女心
    2020-12-14 12:18

    Because it causes more CPU usage. A good explanation is at Timers, Timer Resolution, and Development of Efficient Code.

提交回复
热议问题