Framework.SetTimer Method

Language:

Adds a timer to the list of timers for the application.

Definition

Visual Basic Public Function SetTimer( _
    ByVal callbackTimer As TimerCallback, _
    ByVal timeoutInSeconds As Single _
) As Integer
C# public int SetTimer(
    TimerCallback callbackTimer,
    float timeoutInSeconds
);
C++ public:
int SetTimer(
    TimerCallbackcallbackTimer,
    float timeoutInSeconds
);
JScript public function SetTimer(
    callbackTimer : TimerCallback,
    timeoutInSeconds : float
) : int;

Parameters

callbackTimer Microsoft.Samples.DirectX.UtilityToolkit.TimerCallback
The TimerCallback delegate that handles the timer events.
timeoutInSeconds System.Single
Interval, in seconds, between successive calls to the TimerCallback delegate.

Return Value

System.Int32
The unique identifier (ID) of the timer.

Remarks

Timers that are created with this method can be destroyed by the KillTimer method.


Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.

Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center