开发者

Does a form timer maintain state during sleep/hibernate?

开发者 https://www.devze.com 2023-01-19 13:49 出处:网络
If I have an event that starts a timer with an interval of say, 30 minutes, and 15 minutes later, the compu开发者_运维知识库ter the app is running on sleeps (Suspend to RAM) or Hibernates (Suspend to

If I have an event that starts a timer with an interval of say, 30 minutes, and 15 minutes later, the compu开发者_运维知识库ter the app is running on sleeps (Suspend to RAM) or Hibernates (Suspend to Disk), and is brought back online after ten minutes, will the timer raise its Tick event in 5 minutes (30 minutes REAL time from the start) or 15 minutes (30 minutes RUNTIME from the start)?


The timer maintains whatever state it was in before hibernation or suspension. When the system resumes from hibernate/restore, it will resume from where it was before. In other words, the timer will not run while the system is asleep.

0

精彩评论

暂无评论...
验证码 换一张
取 消