Old implementations of sleep just woke up once every second (inside the operating system) so saying sleep(1) means "wake me up the next time you wake up", which will be in something less than one second (almost one second if it had just recently woken up and almost immediately if it has been almost a second since it woke up).

Update: After chatting with Adam, he had one case that can't be explained by this. That was when his display ended in ":00" for quite a while and then shifted to ":59". The only explanation I can come up with for that is that the system clock isn't consistantly running at the same speed as the "sleep metronome". This is often true on systems where the "sleep metronome" is based on the "uptime clock" (which monotonously marches forward at something close to but not quite exactly real time) while the "time of day clock" has various types of adjustments applied to it in an attempt to keep it in sync with the major television networks.

        - tye (but my friends call me "Tye")

In reply to (tye)Re: Top of the second? by tye
in thread Top of the second? by Adam

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.