Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: A (related) game!

by McDarren (Abbot)
on Dec 29, 2009 at 03:00 UTC ( #814685=note: print w/replies, xml ) Need Help??

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 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 (Chancellor) on Dec 29, 2009 at 11:17 UTC

    Nice try

    See you Tuesday 16:22:14 McDarren you'll have to wait till then your ++ or -- !

    My guess is that it's already finished!

      My guess is that it's already finished!

      Actually, it's abandoned :(

      It stopped (apparently shortly after I went to bed) with a dratted pop-up asking me to confirm something or other, still showing > 39000 days to go. I'll try again tonight. This time I'll wait for the pop-up and hit the "Ignore all" button before retiring.

      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        I'll try again tonight. This time I'll wait for the pop-up...

        (or is it still running? ;)

      My guess is that it's already finished!
      Well, given that you posted this almost 3 hours after the time that I "predicted" it would finish, I should bloody-well hope so :D

      (If that confuses you, take a look at my localtime) ;)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2018-06-24 17:28 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.