sdlDelayNs function
Wait a specified number of nanoseconds before returning.
This function waits a specified number of nanoseconds before returning. It waits at least the specified time, but possibly longer due to OS scheduling.
\param ns the number of nanoseconds 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_DelayNS(Uint64 ns)
Implementation
void sdlDelayNs(int ns) {
final sdlDelayNsLookupFunction =
libSdl3.lookupFunction<Void Function(Uint64 ns), void Function(int ns)>(
'SDL_DelayNS');
return sdlDelayNsLookupFunction(ns);
}