views:

168

answers:

1

Duplicate: http://stackoverflow.com/questions/278071/how-to-get-the-cpu-usage-c


I have an application that is displaying stuff in real time. However, when the feed is giving too much info, my app will take up 100% of CPU. Other stuff is running too so I don't want that to happen. I know I can avoid this by storing the incoming data in some data structure and pushing it to the black box calculation class. Looks like the black box doesn't mind volume but minds frequency. But this compromises the timeliness of the information I am displaying.

I'm thinking of getting the app to monitor its own CPU and adjust accordingly. Is this possible?

I'm developing in C#.

Thanks!

+1  A: 

I found it here.

Somehow I always find it after.

teriyaki