类库说明文档
JHTimer Class |
实现在用户定义的时间间隔引发事件的计时器
Inheritance Hierarchy
Namespace: DCSoft.Utility.Threading
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public class JHTimer
The JHTimer type exposes the following members.
Constructors
Methods
Name | Description | |
---|---|---|
Change |
更改计时器的启动时间和方法调用之间的间隔,如果计时器已被回收,则即兴重新实例化并启动一个新的计时器
| |
Dispose |
释放所有占用资源
| |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
Start |
启动定时器
| |
Stop |
停止定时器
| |
ToString | (Inherited from Object.) |
Events
Name | Description | |
---|---|---|
TimerCallbackEvent |
当计时器间隔已过去而且计时器处于启用状态时发生
|
Remarks
为防止 timer 函数同时执行浪费资源,同时容易产生重复数据,本版本采用单线程方法控制
See Also