c# CPU usage of a process
<p>I wanna get CPU usage for a specific process..</p>

<p>this code</p>

<pre><code>total_cpu = new PerformanceCounter("Processor", "% Processor Time", "_Total");
</code></pre>

<p>works great the number is corresponding to "CPU usage" number in windows task manager</p>

<p>But this</p>

<pre><code>process_cpu = new PerformanceCounter("Process", "% Processor Time", "gta_sa");
var process_cpu_usage = (total_cpu_usage.NextValue() / 100) * process_cpu.NextValue();
</code></pre>

<p>gives me wierd numbers... as you can see on the screenshot (instead of "7" I am getting "2,9..")</p>

<p>THX for help (I hope you understand my problem..)</p>

<p><img src="http://i.stack.imgur.com/RLcPq.jpg" alt="processes"></p>
