Sortix cross-volatile manual
This manual documents Sortix cross-volatile. You can instead view this document in the latest official manual.
SDL_SetTimer(3) | SDL API Reference | SDL_SetTimer(3) |
NAME
SDL_SetTimer - Set a callback to run after the specified number of milliseconds has elapsed.SYNOPSIS
#include "SDL.h"CALLBACK
/* Function prototype for the timer callback function */ typedef Uint32 (*SDL_TimerCallback)(Uint32 interval);DESCRIPTION
Set a callback to run after the specified number of milliseconds has elapsed. The callback function is passed the current timer interval and returns the next timer interval. If the returned value is the same as the one passed in, the periodic alarm continues, otherwise a new alarm is scheduled.
Note:
This function is kept for compatibility but has been superseded by the new timer functions SDL_AddTimer and SDL_RemoveTimer which support multiple timers.
SEE ALSO
SDL_AddTimerTue 11 Sep 2001, 23:01 | SDL |