Calculate consume cpu language c

Hi!

How calculate consume cpu in process using language c?

Thanks,
Thcelo
You have to ask the OS. What OS are you using?
Hi,

Win XP e Win 7.

Thanks,
It's the stuff reported by perfmon.exe.

It's accessible thru WMI or the registry under HKEY_PERFORMANCE_DATA.
cpu % or cpu clocks used or other metric?
HI,

I need calculate in language C "cpu %" process.

Thanks,
Use KBW's answer.
Topic archived. No new replies allowed.