Wiki Page Content

DRAFT

SDL_TICKS_PASSED

Use this macro to compare SDL ticks values.

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.


CategoryAPI, CategoryTimer

None: SDL_TICKS_PASSED (last edited 2013-11-02 14:02:46 by PhilippWiesemann)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit