On Mon, May 03, 2004 at 03:38:00PM +0200, Enzo wrote:
> Non ti assicuro niente, però so che i ritardi ottenibili con la funzione
> SDL_GetTickCount sono piccoli (dell'ordine dei millisecondi).
Allora usleep lo batte:
The usleep() function suspends execution of the calling process for
(at least) usec microseconds. The sleep may be lengthened slightly
by any system activity or by the time spent processing the call or by
the granularity of system timers.
in cui l'accento va sul "The sleep may be lengthened slightly by any
system activity or by the time spent processing the call or by the
granularity of system timers".
--
Rev. Nando Santagata: Telemastica & infornatica
You have reached Ritual Sacrifice. For goats, please press '1' or say 'goats'.
To sacrifice a loved one or pet, press the pound key.
Key fingerprint = 1054 9311 458D 4BAA E97B F447 7CD4 54B5 0208 F815
finger nandos (at) mail (dot) ipers (dot) net for my public key
|