[fpc-devel] About GetTickCount

Luca Olivetti luca at ventoso.org
Thu Nov 3 10:20:08 CET 2011


Al 03/11/2011 9:41, En/na zeljko ha escrit:
>
> Retrieves the number of milliseconds that have elapsed since the system
> was started, up to 49.7 days (what they do after 49.7 days ? ).

It starts again from 0.
If you're using it to time events (i.e. 
ElapsedTime:=GetTickCount-StartTime), it's not a problem, as long as you 
don't need to time events that last longer than 49 days *and* you don't 
enable overflow check (-Co)

Bye
-- 
Luca



More information about the fpc-devel mailing list