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