Maximum Timer interval

后端 未结 9 1271
心在旅途
心在旅途 2021-01-04 01:58

The maximum interval of timer is 2,147,483,647. it\'s about 25 days. But in my requirements I need that the timer will wait 30 days. How can I resolve it? Please help.

9条回答
  •  一生所求
    2021-01-04 02:19

    The timer constructor will take a TimeSpan which is int64 ticks surely that's over 25 days?

    Have you also considered that the system may not stay up for 30 days?

    Just looked it up, it's 10,675,199 days.

提交回复
热议问题