Public Methods
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#cancel()" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">cancel</a></span>()</nobr>
Cancels theTimer and all scheduled tasks.
|
<nobr style="line-height:21px">int</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#purge()" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">purge</a></span>()</nobr>
Removes all canceled tasks from the task queue.
|
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#schedule(java.util.TimerTask,%20java.util.Date,%20long)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">schedule</a></span>(<a rel="nofollow" href="http://developer.android.com/reference/java/util/TimerTask.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">TimerTask</a>task,<a rel="nofollow" href="http://developer.android.com/reference/java/util/Date.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">Date</a>when,
long period)</nobr>
Schedule a task for repeated fixed-delay execution after a specific time has been reached.
|
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#schedule(java.util.TimerTask,%20long,%20long)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">schedule</a></span>(<a rel="nofollow" href="http://developer.android.com/reference/java/util/TimerTask.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">TimerTask</a>task,
long delay, long period)</nobr>
Schedule a task for repeated fixed-delay execution after a specific delay.
|
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#schedule(java.util.TimerTask,%20java.util.Date)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">schedule</a></span>(<a rel="nofollow" href="http://developer.android.com/reference/java/util/TimerTask.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">TimerTask</a>task,<a rel="nofollow" href="http://developer.android.com/reference/java/util/Date.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">Date</a>when)</nobr>
Schedule a task for single execution.
|
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#schedule(java.util.TimerTask,%20long)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">schedule</a></span>(<a rel="nofollow" href="http://developer.android.com/reference/java/util/TimerTask.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">TimerTask</a>task,
long delay)</nobr>
Schedule a task for single execution after a specified delay.
|
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#scheduleAtFixedRate(java.util.TimerTask,%20long,%20long)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">scheduleAtFixedRate</a></span>(<a rel="nofollow" href="http://developer.android.com/reference/java/util/TimerTask.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">TimerTask</a>task,
long delay, long period)</nobr>
Schedule a task for repeated fixed-rate execution after a specific delay has passed.
在delay时间后开始执行第一次,从此以后每隔period又开始执行,即使当前还有其他的任务在执行,它也会被调度并执行。
|
<nobr style="line-height:21px">void</nobr> |
<nobr style="line-height:21px"><span style="line-height:21px; margin-right:2px"><a rel="nofollow" href="http://developer.android.com/reference/java/util/Timer.html#scheduleAtFixedRate(java.util.TimerTask,%20java.util.Date,%20long)" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">scheduleAtFixedRate</a></span>(<a rel="nofollow" href="http://developer.android.com/reference/java/util/TimerTask.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">TimerTask</a>task,<a rel="nofollow" href="http://developer.android.com/reference/java/util/Date.html" style="color:rgb(0,102,153); line-height:21px; text-decoration:none">Date</a>when,
long period)</nobr>
Schedule a task for repeated fixed-rate execution after a specific time has been reached.
在when时间开始执行第一次,从此以后每隔period又开始执行,即使当前还有其他的任务在执行,它也会被调度并执行。
|
相关推荐
Java定时器Timer简述.pdf
这是驱动开发中的关键技术,timer的编程。
使用Timer组件实现倒计时关键技术1:Timer的Enabled属性关键技术2:DateAndTime类的DateDiff方法
Timer Examples FX2N.zip三菱PLC编程案例源码资料编程控制器应用通讯通信例子程序实例Timer Examples FX2N.zip三菱PLC编程案例源码资料编程控制器应用通讯通信例子程序实例Timer Examples FX2N.zip三菱PLC编程案例...
让Timer控件每5分钟触发一次事件 VB技术很实用的源码本人收集了一些技巧供大家参考,希望斑竹能多放一些时间。按字母或数字顺序排列列表框中的列表项. 将以下代码加入到你的程序中.
stm32f103 定时器timer代码: 1、通过启用单片机TIMER3,开始计数。 2、TIMER计数器配置为1秒中断一次,进入中断之后,LED灯亮灭一次。 3、代码使用KEIL开发,当前在STM32F103C8T6运行,如果是STM32F103其他型号芯片...
Mitsubishi Timer Examples (Q02H).zip三菱PLC编程案例源码资料编程控制器应用通讯通信例子程序Mitsubishi Timer Examples (Q02H).zip三菱PLC编程案例源码资料编程控制器应用通讯通信例子程序Mitsubishi Timer ...
form窗体的飘动,窗体在桌面的飘动,窗体的移动,使用timer技术
Remanent On-delayTimer for S7-300400.zip西门子PLC编程实例程序源码下载Remanent On-delayTimer for S7-300400.zip西门子PLC编程实例程序源码下载Remanent On-delayTimer for S7-300400.zip西门子PLC编程实例程序...
计算机也是一样,例如键盘输入,如果不采用中断技术,CPU将不断扫描键盘有否输入,经常处于等待状态,效率极低。而采用了中断方式,CPU可以进行其它的工作,只键盘有按键并发出中断请求时,才予以响应,暂时中断当前...
s3c2410技术精解(timer,cache,mmu,nandflash,etc[1].)
About Time AND Timer sample in STEP7_20070903a.zip西门子PLC编程实例程序源码About Time AND Timer sample in STEP7_20070903a.zip西门子PLC编程实例程序源码About Time AND Timer sample in STEP7_20070903a.zip...
如果使用OO的技术,可以这样, 代码如下: // constructor function MyObj { function foo() { alert( this.data ); } this.timer = foo; this.data = “Hello”; setInterval( “this.timer()”, 1000 ); }...
异步timer应网友要求,重新整理了此源码,没有的抓紧下载啊,
1、Menu控件应用,Timer控件, 2、TreeView控件,内置对象,数据验证技术, 3、网络计算器,网页聊天工具,网站导航
TIMER 反调试喜欢VB的朋友,相信它肯定可以提高编码的效率!
集visual Basic学期课程于一起 包括代码 考试划线 及技术文档 代码示例: 窗体上画一个按钮 一个标签 一个timer Dim i As Long Private Sub Command1 Click Timer1 Enabled True End Sub Private Sub Form Load ...
介绍了关于timer_Cont的详细说明,提供其它知识的技术资料的下载。
NE555 (Timer IC)大约在1971年由Signetics Corporation发布,在当时是唯一非常快速且商业化的Timer IC,在往后的30年来非常普遍被使用,且延伸出许多的应用电路,尽管近年來CMOS技术版本的Timer IC如MOTOROLA的MC...
这是一个我花了较长时间摸索出来的STM8L-051的例程,它控制LED灯,Timer2定时100us进入中断,软件启动ADC,采样10 次后取平均,将结果通过UASART发送至PC机,在超级终端上显示的实用程序,因其内存极小,不能用...