sdl3/sdl_timer library

Functions

sdlAddTimer(int interval, Pointer<NativeFunction<SdlTimerCallback>> callback, Pointer<Void> userdata) → int timer
Call a callback function at a future time.
sdlAddTimerNs(int interval, Pointer<NativeFunction<SdlNsTimerCallback>> callback, Pointer<Void> userdata) → int timer
Call a callback function at a future time.
sdlDelay(int ms) → void timer
Wait a specified number of milliseconds before returning.
sdlDelayNs(int ns) → void timer
Wait a specified number of nanoseconds before returning.
sdlDelayPrecise(int ns) → void timer
Wait a specified number of nanoseconds before returning.
sdlGetPerformanceCounter() → int timer
Get the current value of the high resolution counter.
sdlGetPerformanceFrequency() → int timer
Get the count per second of the high resolution counter.
sdlGetTicks() → int timer
Get the number of milliseconds that have elapsed since the SDL library initialization.
sdlGetTicksNs() → int timer
Get the number of nanoseconds since SDL library initialization.
sdlRemoveTimer(int id) → bool timer
Remove a timer created with SDL_AddTimer().