sdlGetTicks function

int sdlGetTicks()

Get the number of milliseconds since SDL library initialization.

\returns an unsigned 64-bit value representing the number of milliseconds since the SDL library initialized.

\threadsafety It is safe to call this function from any thread.

\since This function is available since SDL 3.1.3.

extern SDL_DECLSPEC Uint64 SDLCALL SDL_GetTicks(void)

Implementation

int sdlGetTicks() {
  final sdlGetTicksLookupFunction =
      libSdl3.lookupFunction<Uint64 Function(), int Function()>('SDL_GetTicks');
  return sdlGetTicksLookupFunction();
}