?$time1 = time;
If that's too coarse for you, you can try using Time::HiRes:
use Time::HiRes 'time'; $time1 = time; sleep 2; $time2 = time; printf "Time difference = %.2f seconds\n", $time2-$time1;
In reply to Re: Current time as variable?
by bart
in thread Current time as variable?
by einerwitzen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |