in reply to How do I calculate the current CPU usage?

Searching for CPU turns up Sys::Info::CPU which gives several % values for CPU load.

Note that "real" CPU load at any given moment is either 0% or 100%.

  • Comment on Re: How do I calculate the current CPU usage?

Replies are listed 'Best First'.
Re^2: How do I calculate the current CPU usage?
by Anonymous Monk on Jun 21, 2007 at 05:26 UTC
    This is not helpful. In the documentation it says the values are for one, five and fifteen minutes ago. I specifically asked for the current CPU usage.

    It is not clear what you mean with »"real" CPU load«. That which I am talking about is on a smooth scale between 0% and 100%.

      How do I calculate the current CPU usage on the Windows XP SP2 machine using Perl?