summaryrefslogtreecommitdiff
path: root/lib/Benchmark.pm
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2013-02-05 22:23:37 -0500
committerDavid Golden <dagolden@cpan.org>2013-02-05 22:49:36 -0500
commita820780c62918236069b3b55502640c99a9e812a (patch)
tree83fd60489843be81231a4ad93f0881c778361691 /lib/Benchmark.pm
parent12d07ca2e030c5e8d1dbfb5167d83aaf00efbe1b (diff)
downloadperl-a820780c62918236069b3b55502640c99a9e812a.tar.gz
Benchmark iteration warnings should warn, not print
Diffstat (limited to 'lib/Benchmark.pm')
-rw-r--r--lib/Benchmark.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Benchmark.pm b/lib/Benchmark.pm
index 8fc9799736..728b0b9e74 100644
--- a/lib/Benchmark.pm
+++ b/lib/Benchmark.pm
@@ -440,7 +440,7 @@ our(@ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS, $VERSION);
clearcache clearallcache disablecache enablecache);
%EXPORT_TAGS=( all => [ @EXPORT, @EXPORT_OK ] ) ;
-$VERSION = 1.13;
+$VERSION = 1.14;
# --- ':hireswallclock' special handling
@@ -836,7 +836,7 @@ sub timethis{
# A conservative warning to spot very silly tests.
# Don't assume that your benchmark is ok simply because
# you don't get this warning!
- print " (warning: too few iterations for a reliable count)\n"
+ warn " (warning: too few iterations for a reliable count)\n"
if $n < $Min_Count
|| ($t->real < 1 && $n < 1000)
|| $t->cpu_a < $Min_CPU;