Method | Description | |
---|---|---|
Cancel ( ) : void |
Cancel timer.
|
|
Schedule ( TimeoutHandler timeoutHandler, System.DateTime firstTimeoutTime, double period = 0.0, TimerCancelHandler cancelHandler = null ) : |
Schedule timer, same with Non-Static Schedule(DateTime, double) method.
|
|
Schedule ( TimeoutHandler timeoutHandler, double dueTime, double period = 0.0, TimerCancelHandler cancelHandler = null ) : |
Schedule timer, same with Non-Static Schedule(double, double) method.
|
|
Schedule ( System.DateTime firstTimeoutTime, double period = 0.0 ) : void |
Schedule timer.
|
|
Schedule ( double dueTime, double period = 0.0 ) : void |
Schedule timer.
|
|
Timer ( TimeoutHandler timeoutHandler, TimerCancelHandler cancelHandler = null ) : System |
Construct new timer.
|
Method | Description | |
---|---|---|
_OnCancel ( ) : void | ||
_OnTimeout ( ) : int |
public static Schedule ( TimeoutHandler timeoutHandler, System.DateTime firstTimeoutTime, double period = 0.0, TimerCancelHandler cancelHandler = null ) : |
||
timeoutHandler | TimeoutHandler | Timeout handler |
firstTimeoutTime | System.DateTime | first timeout time |
period | double | period, in seconds |
cancelHandler | TimerCancelHandler | timer cancel handler |
return |
public static Schedule ( TimeoutHandler timeoutHandler, double dueTime, double period = 0.0, TimerCancelHandler cancelHandler = null ) : |
||
timeoutHandler | TimeoutHandler | Timeout handler |
dueTime | double | dueTime, in seconds |
period | double | period, in seconds |
cancelHandler | TimerCancelHandler | timer cancel handler |
return |
public Schedule ( System.DateTime firstTimeoutTime, double period = 0.0 ) : void | ||
firstTimeoutTime | System.DateTime | first timeout time, absolute time |
period | double | period, in seconds, default is 0.0, means same with (firstTimeoutTime - DateTime.Now) |
return | void |
public Schedule ( double dueTime, double period = 0.0 ) : void | ||
dueTime | double | dueTime, in seconds |
period | double | period, in seconds, default is 0.0, means same with dueTime |
return | void |
public Timer ( TimeoutHandler timeoutHandler, TimerCancelHandler cancelHandler = null ) : System | ||
timeoutHandler | TimeoutHandler | timeout handler |
cancelHandler | TimerCancelHandler | timer cancel handler, optional |
return | System |