[SDL] SDL_ttf 2.0.1 BETA

Sam Lantinga slouken at devolution.com
Mon Apr 16 19:16:18 PDT 2001


>SDL_GetTicks() on UNIX:
>	Uses gettimeofday()
>	Has a theoretical resolution of 1 microsecond
>	Has a real resolution of about 1 millisecond

gettimeofday() on Linux (at least) uses cycle counters if available.
exceptions are mainly non-synchronised SMP systems, which probably use some
kind of real-time clock or (at the lowest level) the jiffy counter.

thus as long as SDL_GetTicks() returns milliseconds there is little point
in changing the implementation by playing games with cycle counters




More information about the SDL mailing list