sdlDelay function

void sdlDelay(
  1. int ms
)

Wait a specified number of milliseconds before returning.

This function waits a specified number of milliseconds before returning. It waits at least the specified time, but possibly longer due to OS scheduling.

\param ms the number of milliseconds to delay.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC void SDLCALL SDL_Delay(Uint32 ms)

Implementation

void sdlDelay(int ms) {
  final sdlDelayLookupFunction =
      libSdl3.lookupFunction<Void Function(Uint32 ms), void Function(int ms)>(
          'SDL_Delay');
  return sdlDelayLookupFunction(ms);
}