summaryrefslogtreecommitdiff
path: root/lib/Benchmark.pm
diff options
context:
space:
mode:
authorBarrie Slaymaker <barries@slaysys.com>2001-11-27 05:58:54 -0500
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-27 15:16:28 +0000
commitf36484b00ee361eaebe87327215b5a06d9950de5 (patch)
treed58254118a9b066f6dcc797478514476c03fa0f1 /lib/Benchmark.pm
parent71c4de84bc8506275f6b08965e20ece87fc9c47b (diff)
downloadperl-f36484b00ee361eaebe87327215b5a06d9950de5.tar.gz
add export tag :all and tweak SYNOPSIS
Message-ID: <20011127105850.B696@sizzle.whoville.com> p4raw-id: //depot/perl@13321
Diffstat (limited to 'lib/Benchmark.pm')
-rw-r--r--lib/Benchmark.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Benchmark.pm b/lib/Benchmark.pm
index 9de99740bb..3f8eb62d07 100644
--- a/lib/Benchmark.pm
+++ b/lib/Benchmark.pm
@@ -6,6 +6,8 @@ Benchmark - benchmark running times of Perl code
=head1 SYNOPSIS
+ use Benchmark qw(:all) ;
+
timethis ($count, "code");
# Use Perl code in strings...
@@ -402,8 +404,9 @@ use Exporter;
@EXPORT=qw(timeit timethis timethese timediff timestr);
@EXPORT_OK=qw(timesum cmpthese countit
clearcache clearallcache disablecache enablecache);
+%EXPORT_TAGS=( all => [ @EXPORT, @EXPORT_OK ] ) ;
-$VERSION = 1.02;
+$VERSION = 1.03;
&init;