in reply to Time Difference
(With localtime, you get an "argument isn't numeric in subtraction" error.)
#filename: stickOutputOnEnd.pl use warnings; use strict; my $time1 = time(); sleep(5); my $time2 = time(); my $timedifference = $time2-$time1; # doesn't work if you use localtim +e. print scalar $timedifference;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Time Difference
by gellyfish (Monsignor) on Mar 18, 2005 at 10:01 UTC | |
by kpaxian25 (Novice) on Mar 18, 2005 at 19:07 UTC |