[fpc-pascal] The unfortunate deprecation of GetTickCount

Tomas Hajny XHajT03 at hajny.biz
Wed Apr 11 19:11:59 CEST 2018

On Wed, April 11, 2018 18:44, R0b0t1 wrote:

> This is related to something I meant to propose a while
> ago related to a cross platform timing and alarm API.
> I do not think GetTickCount should ever be used;
> instead, QueryPerformanceCounter makes more sense. It is
> higher resolution and still portable. The Linux function
> `clock_gettime` called with `CLOCK_REALTIME_HR` is more
> or less a direct equivalent.

No, it isn't portable (neither is GetTickCount, BTW) - there are many more
targets supported by FPC than MS Windows and Linuxm


More information about the fpc-pascal mailing list