sdlGetCurrentTime function
Gets the current value of the system realtime clock in nanoseconds since Jan 1, 1970 in Universal Coordinated Time (UTC).
\param ticks the SDL_Time to hold the returned tick count. \returns true on success or false on failure; call SDL_GetError() for more information.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC bool SDLCALL SDL_GetCurrentTime(SDL_Time *ticks)
Implementation
bool sdlGetCurrentTime(Pointer<Int64> ticks) {
final sdlGetCurrentTimeLookupFunction = libSdl3.lookupFunction<
Uint8 Function(Pointer<Int64> ticks),
int Function(Pointer<Int64> ticks)>('SDL_GetCurrentTime');
return sdlGetCurrentTimeLookupFunction(ticks) == 1;
}