[fpc-pascal] Efficient millisecond timestamp

Michael Van Canneyt michael at freepascal.org
Sat Jan 11 13:17:13 CET 2014



On Sat, 11 Jan 2014, Graeme Geldenhuys wrote:

> On 2014-01-10 11:02, Michael Van Canneyt wrote:
>>
>> Last time I looked, EpikTimer used Now() on Unixes,
>> definitely if you were not on intel platforms.
>
>
> On i386 systems it uses Intel CPU hardware timers. On other Windows
> systems it uses the Windows QueryPerformanceCounter API. On Unixes it
> uses fpgettimeofday() and fpnanosleep()
>
> Does Now() use the fpgettimeofday() call?  Sorry, I didn't delve into
> the compiler code to find out.

Yes, Now() uses fpgettimeofday.

Michael.



More information about the fpc-pascal mailing list