[Lazarus] How to program with time in milliseconds?

Michael Schnell mschnell at lumino.de
Fri May 16 08:44:06 CEST 2014


On 05/15/2014 05:26 PM, Reimar Grabowski wrote:
> OP:
> "I need to develop a game for all possible Operating Systems."

"EpicTimer" uses "QueryPerformanceCounter" for Windows. I did not check 
into this,  but I suppose this already is what he needs.

But it uses "fpgettimeofday" in Linux. This is what Michael vC states to 
be not appropriate.

Hence using the vDSO to call "clock_gettime"sing in Linux should make 
the OP happy with Linux and Windows.

Sorry, but no Idea about other OSes.

-Michael




More information about the Lazarus mailing list