I would like to know how to get CPU usage in the % of my .net app and display it in console. I know how to get the overall CPU, but I need to take only % of CPU usage of the specific app.
For sure I need
using System.Diagnostics;
Process[] processes = Process.GetProcessesByName(processName);