第三个参数(dueTime)让你定义一个引发初始定时器事件的时间。
The third parameter (dueTime) allows you to specify when the initial timer event should be fired.
这个定时器类引发的定时器事件是同你的窗口应用程序的其余代码相同步的。
The timer events raised by this timer class are synchronous with respect to the rest of the code in your Windows Forms app.
在每一个定时器事件被调用时该state对象作为一个参数传递给你的定时回调函数。
This state object is passed to your timer callback function during each timer event invocation.
给该参数定义一个0或者Timeout . Infinite可以阻止后续的定时器事件调用。
Specifying either 0 or Timeout.Infinite for this parameter will disable subsequent timer event invocations.
因为UI线程在睡眠,所以当UI线程一旦被唤醒例子程序就会列出5个定时器事件(4到8)并能够处理处理函数。
Because the UI thread was sleeping, however, the sample application displays the five timer events (4 through 8) all at once when the UI thread wakes up again and is able to process the handlers.
这是因为在这5秒期间第一个定时器事件正在睡眠,而定时器却在不同的工作者线程上继续产生时间消失事件。
This is because during the five seconds that the first timer event was sleeping, the timer kept on generating Elapsed events on different worker threads.
比如,设置了一个5秒的间隔,在间隔被改变为10秒时3秒已经过去了,那么下一个定时器事件将会在上一个定时器事件13秒后发生。
For example, if the interval is set to 5 seconds and 3 seconds have already elapsed before the interval is changed to 10 seconds, the next timer event will be 13 seconds from the last timer event.
就像一个典型窗体程序里的其它代码一样,任何驻留在一个定时器事件处理函数(指的是该类型的定时器类)中的代码也是使用应用程序的UI线程所执行。
Just like the rest of the code in a typical Windows Forms application, any code that resides inside a timer event handler (for this type of timer class) is executed using the application's UI thread.
如果为了处理由该定时器类产生的定时器事件而在你的代码中有一个Application .DoEvents的调用,你的程序流程可能会被打断。
If Application.DoEvents is called from your code, your program flow may be interrupted in order to process the timer events generated by an instance of this class.
为了最大限度的代码重用,三种不同类型的定时器事件都调用了同样的ShowTimerEventFired方法,下面就是三个定时器事件的处理函数。
To maximize code reuse, the sample application calls the same ShowTimerEventFired method from all three different types of timer events. Here are the three timer event handlers.
Timer-based events (timednotifications):由Milestone设置的定时器事件驱动并包含作为主体的Notification消息。
Timer-based events (timed notifications): Driven by timer events set by Milestone and include Notification message as body.
严格来说,“重新显示”是在某些与视图有关的异步事件之后发生的,例如,按键、定时器完成或对HTTP请求的响应。
More precisely, the redisplay occurs after some kind of asynchronous event related to the view, such as a keystroke, a timer completion, or a response to an HTTP request.
如果你看到一个文件,得到改变每20 -30秒左右,只是调查你的事件循环的变化,用一个定时器来确保你不太经常的调查。
If you're watching a single file that gets changed every 20-30 seconds or so, just poll for changes in your event loop, with a timer to make sure you don't poll too often.
事件延迟,毫秒。如果这个值不在定时器支持的最小和最大延时之间的话,函数将返回一个错误。
Event delay, in milliseconds. If this value is not in the range of the minimum and maximum event delays supported by the timer, the function returns an error.
设计多种定时器,处理系统各种超时事件。
Various kinds of timer are designed for dealing with timeout events.
当到达每个定时器间隔时,架构事件功率优化逻辑(AEPOL)就检测计数并判定是应该启动一提高功率还是降低功率序列210。
When each timer interval is reached, architectural event power optimization logic (AEPOL) examines the counts and decides whether a power up or power down sequence should be initiated 210.
如果你需要一个延迟,这样,使用摆动定时器,所以你不要关闭事件线程在睡眠。
If you need a delay like this, use a Swing Timer so you don't shut down the event thread during the sleep.
当定时器溢出,给定的事件将被设置。
将其数值按二进制数在P 1口驱动LED灯上显示出来。2、外部事件计数脉冲由P 3.4引入定时器t0。
Its value according to the binary number displayed on the P1 mouth drive leds. 2, external event count pulse introduced by P3.4 T0 timer.
首先,本文在研究DSP原理的基础上,重点研究了事件管理器中通用定时器的比较操作与PW M波形输出原理以及捕捉单元工作原理。
Firstly, the paper studies the theory of the DSP, especially the theory of the compare operation and the PWM pulse outputting and catch cell.
首先,本文在研究DSP原理的基础上,重点研究了事件管理器中通用定时器的比较操作与PW M波形输出原理以及捕捉单元工作原理。
Firstly, the paper studies the theory of the DSP, especially the theory of the compare operation and the PWM pulse outputting and catch cell.
应用推荐