It is hard to believe that anyone (never mind many anyones), missed the obvious GetSystemTimes() function. Hard to believe that they actually looked--which is the "usual problem".

It would take minimal work to translate the return values of that function into the appropriate values for getloadavg(). Of course, the results would be equally meaningless--what it the point in knowing what happened 60 seconds ago when 128 billion (* 2 or 4 or 6 or 8 or 12 or 16 or 48) things will have happened in the interim?

In human terms, that's like receiving an urgent news flash(*) that the Egyptians had just finished building the Great Pyramid.

Assumes that your news flashes are delivered within one second of the actual event occurring.

Ie. If 1 clock cycle represents 1 second in "human time", then on a 2 GHz single core cpu, a 1 minute load average equates to information pertinent ~4000 years ago!


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.
RIP an inspiration; A true Folk's Guy

In reply to Re^4: portable way to get system load average by BrowserUk
in thread portable way to get system load average by loadaverage

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.