sdlDelayPrecise function
Wait a specified number of nanoseconds before returning.
This function waits a specified number of nanoseconds before returning. It will attempt to wait as close to the requested time as possible, busy waiting if necessary, but could return later 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.6.
extern SDL_DECLSPEC void SDLCALL SDL_DelayPrecise(Uint64 ns)
Implementation
void sdlDelayPrecise(int ns) {
final sdlDelayPreciseLookupFunction =
libSdl3.lookupFunction<Void Function(Uint64 ns), void Function(int ns)>(
'SDL_DelayPrecise');
return sdlDelayPreciseLookupFunction(ns);
}