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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to