[SDL] SDL Timer funtions...

Stephane Marchesin stephane.marchesin at wanadoo.fr
Sun Nov 30 14:28:01 PST 2003

Dominique Louis wrote:

> What are the SDL equivalents of the following 2 Windows Timer 
> functions... 


You can use SDL_GetTicks for that. It depends on the precision you 
expect ; SDL_GetTicks goes down to the millisecond and uses rdtsc if 
available (what you also know  as "performance counters"). Precision 
will vary from one platform to another, but is usually enough.


More information about the SDL mailing list