.NET, event every minute (on the minute). Is a timer the best option?

后端 未结 14 2227
-上瘾入骨i
-上瘾入骨i 2020-11-27 03:02

I want to do stuff every minute on the minute (by the clock) in a windows forms app using c#. I\'m just wondering whats the best way to go about it ?

I could use a t

14条回答
  •  情歌与酒
    2020-11-27 03:44

    Running a bit of code to see if the minute has changed once per second should not require much CPU time, and should be acceptable.

提交回复
热议问题