Microsoft DirectX 9.0 SDK Update (October 2004)

Framework.SetTimer Method

Language:

Note: This documentation is preliminary and is subject to change.

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

Definition

Visual Basic .NET Public Function SetTimer( _
    ByVal callbackTimer As TimerCallback, _
    ByVal timeoutInSeconds As Single _
) As Integer
C# public int SetTimer(
    TimerCallback callbackTimer,
    float timeoutInSeconds
);
Managed C++ public: int SetTimer(
    TimerCallback *callbackTimer,
    float timeoutInSeconds
);
JScript .NET 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.


© 2004 Microsoft Corporation. All rights reserved. Terms of use.

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