sdl3/generated/lib_sdl_timer library

Functions

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