hi,
you could also see in MSDN (i think it is simplier than Profiling)
GetProcessTimes and see the calculation formula on this site:
http://www.alexfedotov.com/samples/wmitop.asp

hmm ... i've just saw you want to calculate your prog
power/energy comsumption ... :-) this i don't know how to make ...
wish you luck,
typecast