Renderer Posted October 12, 2022 Posted October 12, 2022 Hello everyone! I have a question regardig the calculation of the CPU Utilization. When I open the Taskmanager I can check the CPU Utilization. Can someone explain me how it is calculated? I am more intersted in the mathematical approach of this problem. Is there any algorithm that is used to calculate that? What are the constants/variables that must be used? I need to find a way to calculate the CPU Utilization in % for my current project. Thanks!
Moderators JLogan3o13 Posted October 12, 2022 Moderators Posted October 12, 2022 The search feature is your friend; this has been addressed many, many times. There are even some UDFs out there for capturing the performance counters and statistics. Just one of the many examples you'll come across if you search: Process CPU Usage Trackers - AutoIt Example Scripts - AutoIt Forums (autoitscript.com) This one (a little older) even delves into some of the math you're asking about: monitor cpu usage using WinAPI like Task Manager - AutoIt General Help and Support - AutoIt Forums (autoitscript.com) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now