logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_DelayPrecise - Wait a specified number of nanoseconds before returning.

Availability

       This function is available since SDL 3.2.0.

Description

       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.

Function Parameters

ns     the number of nanoseconds to delay.

Header File

       Defined in SDL3/SDL_timer.h

Name

       SDL_DelayPrecise - Wait a specified number of nanoseconds before returning.

See Also

(3), SDL_Delay(3), (3), SDL_DelayNS(3)

Simple Directmedia Layer                           SDL 3.2.10                                SDL_DelayPrecise(3)

Synopsis

#include"SDL3/SDL.h"voidSDL_DelayPrecise(Uint64ns);

Thread Safety

       It is safe to call this function from any thread.

See Also