[fpc-pascal] Very vague gettickcount64 description?

Michael Van Canneyt michael at freepascal.org
Sun Sep 8 18:23:15 CEST 2019



On Sun, 8 Sep 2019, Luca Olivetti wrote:

> El 8/9/19 a les 13:17, Yuriy Sydorov ha escrit:
>
>> if GetTickCount - FStartTime > 3000 then ;
>
> I actually use
>
>   if DWORD(GetTickCount-FStartTime) > 3000 then
>
> the former is affected by the rollback after 49 days, the latter isn't.
>
>
>> 
>> vs
>> 
>> if Now - FStartTime > 3/SecsPerDay then ;
>
> Besides, Now could go backwards (if system time is adjusted), while 
> GetTickCount cannot

It can if the fallback is used.

Michael.


More information about the fpc-pascal mailing list