[fpc-devel] NowUTC in the RTL

Henry Vermaak henry.vermaak at gmail.com
Fri Dec 9 16:31:45 CET 2011


On 09/12/11 14:22, Michael Schnell wrote:
> On 12/09/2011 02:52 PM, Sven Barth wrote:
>>
>> 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...
>
> He writes: " Ticks are time intervals and all of them have the same
> duration "
>
> So the counting is not allowed to stop or to jump forward in case a time
> server access by daemon changing the system time is not allowed to
> interfere in any way.
>
> So I suppose "GetTickCount (number of milliseconds since system start)"
> would be OK, but MONOTONIC_RAW time does not _sound_ correct.
>
> On Linux, "get_jiffies_64()" seems to be a decent Kernel call.

You can't use this in userspace.

Henry



More information about the fpc-devel mailing list