use strict; use warnings; use diagnostics; use Time::HiRes qw( time ); my $start = time(); ...code goes here... my $end = time(); my $runtime = sprintf("%.16s", $end - $start); print "This script took $runtime seconds to execute\n";
In reply to Re: timing a command execution with perl
by james28909
in thread timing a command execution with perl
by savio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |