What's wrong with
use LWP::Simple qw( get ); use Time::HiRes qw( time ); my $url = "http://www.perlmonks.org/"; my $start_time = time; get($url); my $end_time = time; print("The transfer took ", $end_time-$start_time, " seconds.\n");
You could easily put that into a loop and take the average (but beware of caching proxies).
Update: oops, I was a bit slow at posting this!
In reply to Re^3: capture system output
by ikegami
in thread capture system output
by Galen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |