develooper Front page | perl.perl5.porters | Postings from October 2009

Re: [perl #69889] Very long delays of Benchmark module in high resolutionmode

Thread Previous
From:
Guido Flohr
Date:
October 20, 2009 08:47
Subject:
Re: [perl #69889] Very long delays of Benchmark module in high resolutionmode
Message ID:
4ADD6526.4060106@imperia.bg
There is even a simpler solution to the problem that does not require a
calibration.  Our problem is that the synchronizing loop spends too much
system time compared to user time.  So just avoid the call to
gettimeofday() in the loop, and call times() only.  The return value of
gettimeofday() is ignored anyway, at least inside the loop.

Cheers,
Guido
-- 
Империя ООД                         | Imperia OOD
ул. „Княз-Борис-I“ № 86, София 1000 | ul. "Knyaz-Boris-I" № 86, Sofia
http://www.imperia.bg/

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About