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.
GetTimerRemaining
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Gets the remaining interval of a timer.
Parameters
Name | Description |
---|---|
timerid | The ID of the timer to get the remaining interval of. |
Return Values
Returns the remaining interval of the timer in milliseconds.
Examples
new g_Timer;
public OnGameModeInit()
{
g_Timer = SetTimer("TimerCallback", 60000, true);
new remainingInterval = GetTimerRemaining(g_Timer);
printf("Timer ID %d remaining interval: %d ms", g_Timer, remainingInterval);
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.
- GetTimerInterval: Gets the interval of a timer.
- CountRunningTimers: Get the running timers.