OxPM: Re: Benchmarking modules?

Jon Rees jonnyr9 at r9corporation.fsnet.co.uk
Tue Feb 17 11:35:06 CST 2004


http://search.cpan.org/~nwclark/perl-5.8.3/lib/Benchmark.pm

    use Benchmark;
    $t0 = new Benchmark;
    # ... your code here ...
    $t1 = new Benchmark;
    $td = timediff($t1, $t0);
    print "the code took:",timestr($td),"\n";

There is a 'fine' timing variant available....

Dr Jonathan D Rees (webmaster)
Bioinformatics.NET
9 Mill St
Oxford OX2 0AJ
United Kingdom
Tel. (UK) +44 (0)1865244836
Mob. (UK) +44 (0)7970893371
Web: http://www.bioinformatics.net
Email: webmaster at bioinformatics.net
----- Original Message ----- 
From: "Dave Page" <grimoire at sparky.ox.compsoc.net>
To: <oxford-pm-list at happyfunball.pm.org>
Sent: Tuesday, February 17, 2004 11:20 AM
Subject: OxPM: Benchmarking modules?






More information about the Oxford-pm mailing list