R
R
Ruslan Saiko2015-01-30 22:59:17
.NET
Ruslan Saiko, 2015-01-30 22:59:17

How to get the percentage of CPU time eaten by some process?

Good day to all!
Tell whoever is not too lazy, how can I get how many megahertz some process eats?
Forgot to add. How to do it in C# language?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-01-30
Protko @Fesor

Yes Easy! Any process eats the entire frequency that it has and cannot be otherwise, because the processor executes all instructions at the same frequency and it makes no difference to which process it belongs. If the processor frequency can change depending on the load (modern CPUs can do this to reduce power consumption) - this can usually be viewed in some task manager.
And you are probably not interested in megahertz, but in the percentage of processor time consumed by the application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question