in reply to A (related) game!
in thread Is it impossible?
What is your best estimate of how long this process will really take?19398 seconds :)
#!/usr/bin/perl use strict; use warnings; my $first = 39703 * 86400 + 4 * 3600; my $second = 39652 * 86400; my $diff = 25; my $rate = ($first - $second) / $diff; my $estimated_duration = int($first / $rate); my $estimated_finish_time = scalar localtime(time + $estimated_duratio +n); print "Estimated duration: $estimated_duration seconds\n"; print "Estimated finish time: $estimated_finish_time (if we start now) +\n";
$ perl buk.pl Estimated duration: 19398 seconds Estimated finish time: Tue Dec 29 16:22:14 2009 (if we start now)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A (related) game!
by Tommy (Chaplain) on Jan 14, 2010 at 14:32 UTC | |
|
Re^2: A (related) game!
by Gavin (Archbishop) on Dec 29, 2009 at 11:17 UTC | |
by BrowserUk (Patriarch) on Dec 29, 2009 at 12:01 UTC | |
by McDarren (Abbot) on Jan 14, 2010 at 15:57 UTC | |
by BrowserUk (Patriarch) on Jan 14, 2010 at 16:04 UTC | |
by McDarren (Abbot) on Dec 29, 2009 at 14:53 UTC |