定时器的最大值
C# 中定时器工作的最大间隔是多少?
它是int 32的最大值吗?
我可以将其更改为 int 64 吗?
如果我改变,那就是一个很大的如果,计时器还会工作吗?
what is the maximum interval for a timer to work in C#?
is it the maximum value of int 32?
can i change it to int 64?
If i change, that is ONE big IF, will a timer still be working?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
System.Timers.Timer.Interval:
您无法将 Int64 分配给 Int32(大于
Int32.MaxValue
)。感兴趣的:比较 .NET Framework 类库中的计时器类
System.Timers.Timer.Interval:
You cannot assign an Int64 to an Int32 (that is larger than
Int32.MaxValue
)Of interest: Comparing the Timer Classes in the .NET Framework Class Library
奇怪的是,如果您搜索 winforms 计时器,它会出现< /a> 向上。间隔属性是一个 int。
Oddly enough if you search for winforms timer it comes right up. The interval property is an int.