SDL_GetTicks - Man Page

Get the number of milliseconds since SDL library initialization.

Header File

Defined in SDL3/SDL_timer.h

Synopsis

#include "SDL3/SDL.h"

Uint64 SDL_GetTicks(void);

Return Value

( Uint64 ) Returns an unsigned 64-bit value representing the number of milliseconds since the SDL library initialized.

Thread Safety

It is safe to call this function from any thread.

Availability

This function is available since SDL 3.2.0.

Info

SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS