On Mon, Jan 23, 2012 at 08:38:38AM +0200, Karri Kaksonen wrote: > The most practical would be to have an unsigned long that is > incremented at every IRQ and use CLOCKS_PER_SEC for converting it to > milliseconds or seconds. > > But I assume that clock() is only available in C++. No, clock is a C89 function and available - but not implemented for all platforms. One drawback is that - according to the standard - clock() measures CPU time, not real time. But for the systems in question I think it this can be safely ignored. There are even platforms were CLOCKS_PER_SEC is determined at run time. Which would probably the model to implement for most consoles. BTW: Do you know who is responsible for the sipo.fi mail server? It seems to be severly overloaded and there are long mail delays in regular intervals. Regards Uz -- Ullrich von Bassewitz uz@musoftware.de ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Mon Jan 23 09:19:59 2012
This archive was generated by hypermail 2.1.8 : 2012-01-23 09:20:02 CET