Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Module to calculate ETA

by Khen1950fx (Canon)
on Mar 02, 2013 at 16:00 UTC ( #1021443=note: print w/replies, xml ) Need Help??


in reply to Module to calculate ETA

Time::Progress:
#!/usr/bin/perl use strict; use warnings; use Time::Progress; $| = 1; my $p = new Time::Progress; $p->restart; sleep 5; # or put your work here print $p->report( "done %p elapsed: %L (%l sec), ETA %E (%e sec)\n", 50); $p->stop; print $p->elapsed_str;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1021443]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-12-03 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (59 votes). Check out past polls.