in reply to Re^2: capture system output
in thread capture system output
Again, just use LWP (and possibly Time::HiRes if you want finer than second granularity).
use LWP::Simple qw( get ); use Time::HiRes qw( time ); my $url = "http://..."; my $start = time; getstore( $url, "/dev/null" ); my $end = time; print "Took ", $end - $start, " seconds\n";
|
|---|