DRAFT |
SDL_TICKS_PASSED
Use this macro to compare SDL ticks values.
Contents
Syntax
SDL_TICKS_PASSED(A, B)
Function Parameters
A |
the first ticks values |
B |
the second ticks values |
Return Value
Returns return "true" if A has passed B.
Code Examples
/* if you want to wait 100 ms, you could do this: */
Uint32 timeout = SDL_GetTicks() + 100;
while (!SDL_TICKS_PASSED(SDL_GetTicks(), timeout)) {
/* ... do work until timeout has elapsed */
}
Remarks
You can add useful comments here
Version
This function is available since SDL 2.0.1.