warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
GetTimerInterval
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Gets the interval of a timer.
Parameters
Name | Description |
---|---|
timerid | The ID of the timer to get the interval of. |
Return Values
Returns the interval of the timer in milliseconds.
Examples
new g_Timer;
public OnGameModeInit()
{
g_Timer = SetTimer("TimerCallback", 60000, true);
new interval = GetTimerInterval(g_Timer);
printf("Timer ID %d interval: %d ms", g_Timer, interval);
return 1;
}
Related Functions
- SetTimer: Set a timer.
- SetTimerEx: Set a timer with parameters.
- KillTimer: Stop a timer.
- IsValidTimer: Checks if a timer is valid.
- IsRepeatingTimer: Checks if a timer is set to repeat.
- GetTimerRemaining: Gets the remaining interval of a timer.
- CountRunningTimers: Get the running timers.