Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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 buk.pl Estimated duration: 19398 seconds Estimated finish time: Tue Dec 29 16:22:14 2009 (if we start now)


Comment on Re: A (related) game!
Select or Download Code
Re^2: A (related) game!
by Gavin (Canon) 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...
        and....?

        (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) ;)

Re^2: A (related) game!
by Tommy (Chaplain) on Jan 14, 2010 at 14:32 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://814685]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-12-17 22:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (35 votes), past polls