PDA

View Full Version : An efficient way to determine CPU usage



jose_inesta
23rd May 2012, 16:15
Hi,

I would like to determine the % usage of my CPU when my application is running on windows system.

What is the best and efficient way in Qt?

Thank you in advance.

ChrisW67
24th May 2012, 02:48
You use the dedicated Windows API (http://msdn.microsoft.com/en-us/library/aa373083%28VS.85%29.aspx) or WMI (http://msdn.microsoft.com/en-us/library/aa392397%28VS.85%29.aspx). There's nothing in the Qt libraries to assist.