in reply to timing a command execution with perl
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: timing a command execution with perl
by johngg (Canon) on Dec 09, 2014 at 15:40 UTC | |
|
Re^2: timing a command execution with perl
by Anonymous Monk on Dec 09, 2014 at 15:38 UTC | |
by james28909 (Deacon) on Dec 09, 2014 at 15:53 UTC | |
by Anonymous Monk on Dec 09, 2014 at 15:44 UTC | |
|
Re^2: timing a command execution with perl
by Anonymous Monk on Dec 09, 2014 at 15:45 UTC | |
by james28909 (Deacon) on Dec 09, 2014 at 16:06 UTC |