DRAFT |
SDL_GetTicks
Use this function to get the number of milliseconds since the SDL library initialization.
Syntax
Uint32 SDL_GetTicks(void)
Return Value
Returns a 32-bit value representing the number of milliseconds since the SDL library initialized.
-or-
*
Returns an unsigned 32 bit integer number. The returned value represents the number of milliseconds since SDL library initialization.
*
Code Examples
You can add your code example here
Remarks
This value wraps if the program runs for more than ~49 days.
*
This function can be used to build a double click handling routine. In fact, there is currently no such mouse event in the SDL event subsystem. One solution consists of calculating the interval between two mouse clicks by saving the values returned by SDL_GetTicks(). Then if the difference between two values returned by SDL_GetTicks() is inside a predefined threshold, the application can fire a software double click event.
*
Related Functions
SDL_Delay * This isn't reciprocal yet.