|Welcome to the Monastery|
Windows 7 CPU usageby gepebril69 (Beadle)
|on Feb 02, 2012 at 12:14 UTC||Need Help??|
gepebril69 has asked for the
wisdom of the Perl Monks concerning the following question:
Hi there, I'm trying to get the CPU usage of a Windows 7 machine(x64), running on a Intel core i5. I've Googled my way around and first found this: Win32::SystemInfo::CpuUsage
Which gave me following result
Then I found Sys::Info::Constants With following example:
Wich provides me with output that is mostly 10% or more above what Window Task Manager provides me when I monitor CPU usage for a minute...
1) Why does example 1 output only -1 (I also ran as administrator)
2) Why higher than Window Task Manager
3) Is there a better way of doing so?
Thanks in advance