[fpc-devel] NowUTC in the RTL

Michael Schnell mschnell at lumino.de
Fri Dec 9 13:30:44 CET 2011


On 12/09/2011 01:17 PM, Felipe Monteiro de Carvalho wrote:
> I would like to define it like this: "FPGetTickCount returns the 
> amount of ticks since an unspecified initial time. This initial time 
> is unknown, but is fixed for the entire duration of the application. 
> Ticks are time intervals and all of them have the same duration, but 
> their exact meaning in terms of real world units like milliseconds is 
> unspecified. FPGetTickCount is not affected by timezones and also not 
> by the user changing the system clock." So it matches 
> Windows.GetTickCount well but still is flexible enough to be 
> implemented in other platforms.

What if the PC is polling a time server or similar ?  IMHO 
FPGetTickCount should not be affected by such interference. This rules 
out using OS time API calls.

-Michael



More information about the fpc-devel mailing list