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

zeljko zeljko at holobit.net
Thu Nov 3 09:08:35 CET 2011


On Thursday 03 of November 2011 08:43:55 Martin Schreiber wrote:
> On Thursday 03 November 2011 08.04:17 Martin Schreiber wrote:
> > On Thursday 03 November 2011 07.44:47 zeljko wrote:
> > > > The results with 10'000'000 calls:
> > > > 
> > > > FPC Now() MSEgui nowutc() MSEgui nowlocal()
> > > > 
> > > > Linux
> > > > 
> > > >   15.29s           3.39s             3.57s
> > > > 
> > > > Windows
> > > > 
> > > >   10.00s           1.22s             1.37s
> > > 
> > > Have you tried latest Michael's patch for getttimeofday ?
> 
> RTL recompiled with Michael's file:
> 
>  Linux
>  FPC Now() MSEgui nowutc() MSEgui nowlocal()
> 
>   11.49s           3.86s             4.03s

That's pretty big difference. Can you compare NowReal() from attached program 
with your functions ?

zeljko


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111103/d162e6e7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unixclocks.lpr
Type: text/lazarus-project-source
Size: 2476 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111103/d162e6e7/attachment.bin>


More information about the fpc-devel mailing list