Framework.SetTimer Method |
Language: |
Adds a timer to the list of timers for the application.
Visual Basic Public Function SetTimer( _
ByVal callbackTimer As TimerCallback, _
ByVal timeoutInSeconds As Single _
) As IntegerC# public int SetTimer(
TimerCallback callbackTimer,
float timeoutInSeconds
);C++ public:
int SetTimer(
TimerCallback^ callbackTimer,
float timeoutInSeconds
);JScript public function SetTimer(
callbackTimer : TimerCallback,
timeoutInSeconds : float
) : int;
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.
System.Int32
The unique identifier (ID) of the timer.
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