Next Making Programs Faster 25

time()

        use LWP::Simple 'get';
        my $url= shift;
        my $start = time();
        my $doc = get($url);
        my $elapsed = time() - $start;
        print "$elapsed second(s) elapsed.\n";
        2 second(s) elapsed.
     print "Program has been running for ", 
                time() - $^T, " second(s).\n";

Next Copyright © 2003 M. J. Dominus