[fpc-devel] Problem with Now() and time changed by ntpd

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Nov 3 01:32:43 CET 2011


Luca Olivetti schrieb:
> Al 02/11/11 09:31, En/na Mark Morgan Lloyd ha escrit:
> 
>> But even in this case, what should happen if the user (or NTP) explicitly changes the system clock? Ultimately, what matters for relative timing is ticks-since-boot.
> 
>>From the link posted before:
> 
> http://www.kernel.org/doc/man-pages/online/pages/man2/clock_gettime.2.html
> 
> 
> CLOCK_MONOTONIC_RAW (since Linux 2.6.28; Linux-specific)
>      Similar to CLOCK_MONOTONIC, but provides access to a raw hardware-based
>      time that is not subject to NTP adjustments.

Did you also notice this:
 >>
More clocks may be implemented.  The interpretation of the corresponding 
time values and the effect on timers is unspecified.
<<

DoDi




More information about the fpc-devel mailing list