[fpc-devel] Problem with Now() and time changed by ntpd
Henry Vermaak
henry.vermaak at gmail.com
Wed Nov 2 14:52:53 CET 2011
On 02/11/11 13:38, zeljko wrote:
>
>
> Please see results about Now() and something that I've mentioned about
> deprecitation of gettimeofday().According to this test, current
> fpgettimeofday() is crap when compared with clock_gettime() (kernel) or
> libc calls (I've copied scenario from kylix sysutils).
>
>
> *Kernel clock_gettime() NowReal() with 10000000 calls = 4870 ms
>
> **Libc gettimeofday()+localtime_r() with 10000000 calls = 5085 ms
>
> ***RTL Now() with 10000000 calls = 7659 ms ?!?!?!? Slowest !?!?
So fpc rtl is slower even _without_ the stat call in localtime.
Henry
More information about the fpc-devel
mailing list