Nor do browsers pass any information about the timer event to these functions.
浏览器并不将关于计时器事件的任何信息传递给这些函数。
Your timer event functions don't do much more than your cursor event functions.
计时器事件函数没有鼠标事件函数那么复杂。
Once this single timer event occurs, the timeout request is considered completed.
一旦发生这个唯一的计时器事件,则将该超时请求视为已完成。
This state object is passed to your timer callback function during each timer event invocation.
在每一个定时器事件被调用时该state对象作为一个参数传递给你的定时回调函数。
This information let us determine if we are processing the last timer event for a given request.
可利用此信息确定是否在处理给定请求的最后一个计时器事件。
The third parameter (dueTime) allows you to specify when the initial timer event should be fired.
第三个参数(dueTime)让你定义一个引发初始定时器事件的时间。
This has the effect of making the timer event fire 2 seconds after developer code stops executing.
这样做的结果是使得timer事件在代码停止执行后的两秒钟才被触发。
Property that specifies the number of milliseconds that pass between one timer event and the next.
属性,该属性指定一个计时器事件与下一个计时器事件之间间隔的毫秒数。
These two fields represent the original number of timer events requested and the current timer event number.
这两个字段表示所请求的计时器事件原始数量和当前计时器事件数量。
The timer is not periodic; you set it when the timer event is triggered, and then the event is removed from the event queue.
计时器不是周期性的;当触发计时器事件时设置它,然后从事件队列中删除事件。
If we do detect that this is the final timer event in the burst, then we must build a new control message to setup for the next burst.
如果确实检测到这是连续事件中的最后一个计时器事件,则必须构建一个新的控制消息,以设置下一组连续事件。
Hence, the value of the tickCounter variable was incremented five times before the processing of the first timer event was completed.
因此,在第一个定 时器事件处理完成之前tickCounter变量被增加了5次。
The node begins timings as soon as the containing message flow has been deployed, and the first timer event occurs as soon as the flow is deployed.
一旦包含的消息流被部署,该节点将立即开始计时,第一个计时器事件将立即发生。
But suppose the broker was down for 15 minutes and we set up a timer for once every minute, will the broker create 15 timer event messages when it restarts?
但假定代理停止工作15分钟,而设置了一个每分钟进行一次计时的计时器,代理是否会在重新启动时创建15条计时器消息?
Remember that StartTime represents the time of the first timer event, not the last, so adding the value of "BurstInterval" correctly sets the time for the next event.
请记住,StartTime表示第一个计时器事件的时间,而不是最后一个事件的时间,因此正确添加“BurstInterval”的值可设置下一个事件的时间。
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.
为了最大限度的代码重用,三种不同类型的定时器事件都调用了同样的ShowTimerEventFired方法,下面就是三个定时器事件的处理函数。
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.
比如,设置了一个5秒的间隔,在间隔被改变为10秒时3秒已经过去了,那么下一个定时器事件将会在上一个定时器事件13秒后发生。
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.
就像一个典型窗体程序里的其它代码一样,任何驻留在一个定时器事件处理函数(指的是该类型的定时器类)中的代码也是使用应用程序的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.
就像一个典型窗体程序里的其它代码一样,任何驻留在一个定时器事件处理函数(指的是该类型的定时器类)中的代码也是使用应用程序的UI线程所执行。
应用推荐