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)