![]() |
![]() |
![]() |
Framework.SetTimer Method |
Language: |
Adds a timer to the list of timers for the application.
Visual Basic .NET Public Function SetTimer( _
ByVal callbackTimer As TimerCallback, _
ByVal timeoutInSeconds As Single _
) As IntegerC# 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;
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.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center