由网友(时光泛黄了照片)分享简介:想象一下,我有一个 System.Windows.Forms.Timer 与1000毫秒的时间间隔。 Imagine that I have a System.Windows.Forms.Timer with 1000 ms interval. 如果我称之为 Timer.Start()方法和后500毫秒我再次呼吁...
想象一下,我有一个 System.Windows.Forms.Timer
与1000毫秒的时间间隔。
Imagine that I have a System.Windows.Forms.Timer
with 1000 ms interval.
如果我称之为 Timer.Start()
方法和后500毫秒我再次呼吁 Timer.Start()
怎么了?第二个启动
通话将重置间隔或不?有没有副作用?
If I call Timer.Start()
method and after 500 ms I call again Timer.Start()
what happens? The second Start
call will reset the interval or not? Are there any side effects?
推荐答案
定时器已经启动,所以第二个电话会不会影响它。
The timer is already started, so a second call will not affect it.
无论如何,这是轻松以测试。
Regardless, this is easy to test.
相关推荐
最新文章