In particular, see Benchmark and Time::HiRes. A quick and dirty solution is also the built-in time, which will give you second-level granularity, a la:
#!/usr/bin/perl use strict; use warnings; my $start = time; # Do stuff my $duration = time - $start; print "Execution time: $duration s\n";
In reply to Re: How to measure execution time in Perl
by kennethk
in thread How to measure execution time in Perl
by gasho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |