SDL_GetTicks - Man Page
Get the number of milliseconds that have elapsed since the SDL library initialization.
Synopsis
#include <SDL3/SDL_timer.h> Uint64 SDL_GetTicks(void);
Return Value
Returns an unsigned 64‑bit integer that represents the number of milliseconds that have elapsed since the SDL library was initialized (typically via a call to SDL_Init).
Thread Safety
It is safe to call this function from any thread.
Availability
This function is available since SDL 3.2.0.
See Also
Info
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS