Constructor Timer
Timer()
Initializes a new instance of the Timer class.
public Timer()
Timer(TimeSpan)
Initializes a new instance of the Timer class with the specified tick interval.
public Timer(TimeSpan interval)
Parameters
intervalTimeSpanThe time duration before the Tick event is raised relative to the last occurrence of the Tick event.
Timer(int)
Initializes a new instance of the Timer class with the specified tick interval (in milliseconds).
public Timer(int interval)
Parameters
Timer(TimeSpan, EventHandler)
public Timer(TimeSpan interval, EventHandler tickHandler)
Parameters
intervalTimeSpanThe time duration before the Tick event is raised relative to the last occurrence of the Tick event.
tickHandlerEventHandlerAn EventHandler which is called when the specified timer interval has elapsed and the timer is enabled.
Timer(int, EventHandler)
Initializes a new instance of the Timer class with the specified tick interval (in milliseconds) and Tick handler.
public Timer(int interval, EventHandler tickHandler)
Parameters
intervalintThe time duration before the Tick event is raised.
tickHandlerEventHandlerAn EventHandler which is called when the specified timer interval has elapsed and the timer is enabled.
Timer(int, Action)
Initializes a new instance of the Timer class with a specified interval (in milliseconds) and action to execute on each tick.
public Timer(int interval, Action tickAction)