#pragma section-numbers off #pragma disable-camelcase = SDL_GetTicks = Use this function to get the number of milliseconds since the SDL library initialization. <> == Syntax == {{{#!highlight cpp Uint32 SDL_GetTicks(void) }}} == Return Value == Returns an unsigned 32-bit value representing the number of milliseconds since the SDL library initialized. == Code Examples == {{{#!highlight cpp unsigned int lastTime = 0, currentTime; while (!quit) { // do stuff // ... // Print a report once per second currentTime = SDL_GetTicks(); if (currentTime > lastTime + 1000) { printf("Report: %d\n", variable); lastTime = currentTime; } } }}} == Remarks == This value wraps if the program runs for more than ~49 days. == Related Functions == .[[SDL_TICKS_PASSED]] ---- [[CategoryAPI]], [[CategoryTimer]]