Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I would like to display the timediff results in hours (in addition to seconds, which the above does just fine). I am running into difficulties formatting the time units into something other than seconds.use Benchmark; my $start_time = new Benchmark; my $end_time = new Benchmark; my $difference = timediff($end_time, $start_time); print ("It took ", timestr($difference), " to run everything.\n");
There must be an easy way to do this, right?
Thanks,
-Fiddler42
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to format Benchmark results in hours?
by FitTrend (Pilgrim) on Feb 10, 2005 at 16:36 UTC | |
|
Re: How to format Benchmark results in hours?
by m-rau (Scribe) on Feb 10, 2005 at 16:49 UTC | |
|
Re: How to format Benchmark results in hours?
by TedPride (Priest) on Feb 10, 2005 at 16:36 UTC | |
|
Re: How to format Benchmark results in hours?
by grinder (Bishop) on Feb 10, 2005 at 17:24 UTC | |
by m-rau (Scribe) on Feb 10, 2005 at 17:50 UTC |