C99 and GMP tuning
haberg-1 at telia.com
Mon Apr 9 20:14:50 UTC 2018
> On 9 Apr 2018, at 17:45, Torbjörn Granlund <tg at gmplib.org> wrote:
> sav_ix at ukr.net writes:
> After moving to C99, can GMP Developers consider to drop use of non
> portable 'getrusage()', 'rusage' etc. in favor of 'clock()'? The
> advantage in addition to portability could be that the running time of
> the tuning be shortened (need be verified).
> This seems completely unrelated to C90 vs C99.
> I also think you're wrong. If you are aware of a specific system where
> clock() is more accurate than getrusage, then let us know. But please
> don't base that on beliefs, instead check that it is actually the case.
This page  says that POSIX clock_gettime  with clock id CLOCK_PROCESS_CPUTIME_ID offers better resolution than clock.
More information about the gmp-discuss