JHTimer Class

DCSoft.DBUtilityGeneric

JHTimer Class
实现在用户定义的时间间隔引发事件的计时器
Inheritance Hierarchy
SystemObject  DCSoft.Utility.ThreadingJHTimer

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
  NameDescription
Public methodJHTimer
实例化
Top
Methods
  NameDescription
Public methodChange
更改计时器的启动时间和方法调用之间的间隔,如果计时器已被回收,则即兴重新实例化并启动一个新的计时器
Public methodDispose
释放所有占用资源
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStart
启动定时器
Public methodStop
停止定时器
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventTimerCallbackEvent
当计时器间隔已过去而且计时器处于启用状态时发生
Top
Remarks
为防止 timer 函数同时执行浪费资源,同时容易产生重复数据,本版本采用单线程方法控制
See Also