定时器的最大值 [英] maximum value for timer

查看:41
本文介绍了定时器的最大值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

定时器在 C# 中工作的最大间隔是多少?

what is the maximum interval for a timer to work in C#?

是int 32的最大值吗?

is it the maximum value of int 32?

我可以将其更改为 int 64 吗?

can i change it to int 64?

如果我改变了,那就是 ONE 大 IF,计时器还会工作吗?

If i change, that is ONE big IF, will a timer still be working?

推荐答案

System.Timers.Timer.Interval:

之间的时间,以毫秒为单位过去的事件.该值必须是大于零,小于或等于 Int32.MaxValue.默认的是 100 毫秒.

The time, in milliseconds, between Elapsed events. The value must be greater than zero, and less than or equal to Int32.MaxValue. The default is 100 milliseconds.

不能将 Int64 分配给 Int32(大于 Int32.MaxValue)

You cannot assign an Int64 to an Int32 (that is larger than Int32.MaxValue)

感兴趣:比较 .NET Framework 类库中的计时器类

这篇关于定时器的最大值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆