(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;
In reply to Re: Time Difference
by tphyahoo
in thread Time Difference
by kpaxian25
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |