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_GetCurrentTime - Gets the current value of the system realtime clock in nanoseconds since Jan 1, 1970

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.10                              SDL_GetCurrentTime(3)

Function Parameters

ticks  the SDL_Time
               to hold the returned tick count.

Header File

       Defined in SDL3/SDL_time.h

Name

       SDL_GetCurrentTime - Gets the current value of the system realtime clock in nanoseconds since Jan 1, 1970
       in Universal Coordinated Time (UTC).

Return Value

       Returns true on success or false on failure; call

       SDL_GetError () for more information.

Synopsis

#include"SDL3/SDL.h"boolSDL_GetCurrentTime(SDL_Time*ticks);

See Also