isn't it?use strict; use warnings; use diagnostics; use Time::HiRes qw( time ); my $start = time(); system("program-name file-name"); my $end = time(); my $runtime = sprintf("%.16s", $end - $start); print "This script took $runtime seconds to execute\n";
In reply to Re^2: timing a command execution with perl
by Anonymous Monk
in thread timing a command execution with perl
by savio
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |