in reply to Re: Current time as variable?
in thread Current time as variable?
and it always prints out as 1071679507 seconds&starttime; &stoptime; sub starttime{ my $start = time; sleep 5; } sub stoptime{ my $end = time; my $elapsed = $end - $start; print $elapsed; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Current time as variable?
by b10m (Vicar) on Dec 17, 2003 at 17:08 UTC |