Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Displaying of completion time of file transfer

by czachary (Initiate)
on Feb 03, 2012 at 19:58 UTC ( [id://951702]=perlquestion: print w/replies, xml ) Need Help??

czachary has asked for the wisdom of the Perl Monks concerning the following question:

Hello all, Is there a way in Perl to display the time I takes to upload/download a file via CGI? Is there a module out there that could facilitate this?
  • Comment on Displaying of completion time of file transfer

Replies are listed 'Best First'.
Re: Displaying of completion time of file transfer
by InfiniteSilence (Curate) on Feb 03, 2012 at 20:13 UTC

    linux~> perl -e 'my $a = time; sleep 9; my $b = time; print $b-$a;'
    Take the time at the beginning, do stuff ,take the time at the end, and subtract.

    Celebrate Intellectual Diversity

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://951702]
Approved by Marshall
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found