Control: tag -1 moreinfo

On Fri, Aug 22, 2008 at 01:24:43AM +0000, brian m. carlson wrote:
> Package: perl-modules
> Version: 5.10.0-13
> Severity: minor
> Tags: upstream
> 
> In Benchmark, the default style for timestr is %5.2f.  However, when
> running tests using prove (which indirectly uses Benchmark), this
> produces an extra space before the parenthesis:
> 
>   Files=1, Tests=2,  0 wallclock secs ( 0.02 cusr +  0.00 csys =  0.02 CPU)
> 
> This looks odd and unbalanced.

Hi, sorry that nobody answered this before.

I'm reviewing some old bugs and while the Benchmark output in this one
hasn't changed in twelve years AFAICS, I'm not sure I get the problem.

What extra space are you referring to above? I see some *after* the first
parenthesis, but the one between 'secs' and '(' seems appropriate.

In case you mean the space after the first parenthesis, that's a direct
result of the documented default %5.2f format you mentioned, right?

 % perl -MBenchmark -le '$t1 = Benchmark->new; sleep 1; $t2 = Benchmark->new; 
print timestr(timediff($t2, $t1))'
  1 wallclock secs ( 0.00 usr +  0.00 sys =  0.00 CPU)

-- 
Niko Tyni   nt...@debian.org

Reply via email to