[fpc-devel] NowUTC in the RTL
pascaldragon at googlemail.com
Fri Dec 9 14:52:56 CET 2011
Am 09.12.2011 13:30, schrieb Michael Schnell:
> 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.
The description of Felipe mathes Windows' GetTickCount (number of
milliseconds since system start) and Linux' MONOTONIC_RAW time (or
however it is called exactly). So I don't see why this should rule out
OS time API calls...
More information about the fpc-devel