Share via


ExtendedTimer Constructor (TimerCallback, Object, TimeSpan, TimeSpan)

Initializes a new instance of the ExtendedTimer class, using System.TimeSpan values to measure time intervals.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

[MethodImplAttribute]
public ExtendedTimer (
         TimerCallbackcallback,
         Objectstate,
         TimeSpandueTime,
         TimeSpanperiod
)

Parameters

  • callback
    The callback method that is executed when the timer expires.
  • state
    An object that contains application-specific information relevant to the methods invoked by the callback method, or a null reference.
  • dueTime
    The amount of time the timer will wait before the callback method invokes its methods, in milliseconds. Specify System.Threading.Timeout.Infinite to prevent the timer from starting. Specify 0 (zero) to start the timer immediately.
  • period
    The time interval between invocations of the methods referenced by the callback method, in milliseconds. Specify System.Threading.Timeout.Infinite to disable periodic signaling.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

ExtendedTimer Class
ExtendedTimer Members
Microsoft.SPOT Namespace