[fpc-pascal] Very vague gettickcount64 description?

Luca Olivetti luca at ventoso.org
Sun Sep 8 13:31:02 CEST 2019


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

Bye
-- 
Luca



More information about the fpc-pascal mailing list