This documentation is archived and is not being maintained.

Timer Constructor

Initializes a new instance of the Timer class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Timer(TimerCallback) Initializes a new instance of the Timer class with an infinite period and an infinite due time, using the newly created Timer object as the state object.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Timer(TimerCallback, Object, Int32, Int32) Initializes a new instance of the Timer class, using a 32-bit signed integer to specify the time interval.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Timer(TimerCallback, Object, Int64, Int64) Initializes a new instance of the Timer class, using 64-bit signed integers to measure time intervals.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Timer(TimerCallback, Object, TimeSpan, TimeSpan) Initializes a new instance of the Timer class, using TimeSpan values to measure time intervals.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Timer(TimerCallback, Object, UInt32, UInt32) Initializes a new instance of the Timer class, using 32-bit unsigned integers to measure time intervals.
Top
Show: