What is best algorithm for calculating total CPU usage at a particular time during execution of a process.
I am working windows platform in C++.
Let me recommend you this great article: http://www.codeproject.com/KB/threads/Get_CPU_Usage.aspx
I'm sure you'll find it useful.