Actually, it can't be the same as task manager. Because task manager's counter using its own method. Besides that,
performance counter
is a counter, so it will count the value instead of getting the value of task manager. For answering, i said that it's okay to have a quite different value for your device monitor. And for addition, make sure that you called
cpu_value.NextValue();
function when using
performance counter
, before inserting the value into form, wpf, or console.
notes:
cpu_value
is a variable i used for processor's
performance counter
.