CPU usage

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
2 posts Page 1 of 1
Contributors
User avatar
Mudit
New Member
New Member
Posts: 20
Joined: Tue Aug 24, 2010 4:51 am

CPU usage
Mudit
A small example of how to get the computers total cpu usage. This example uses the GetSystemTimes API call and calculates to get the system cpu or processor usage. This API can only be used to get the total cpu usage from ALL of the computers processors. Example, if CPU #1 is 100% usage and CPU #2 is 0% usage the total usage would be 50%. Also, this API call is available in Windows XP if Service PAck 1 or Above is installed. OBviously Vista and the like will have it.
You do not have the required permissions to view the files attached to this post.
User avatar
mandai
Coding God
Coding God
Posts: 2585
Joined: Mon Apr 26, 2010 6:51 pm

Re: CPU usage
mandai
In .Net you can also see this with the PerformanceCounter control.
2 posts Page 1 of 1
Return to “Tutorials”