Measure processing time.

Hello,

I'm trying to get some sort of performance measurements on my program. I used the difference between GetTickCount() at first, but the measurements vary strongly between executions.

Is there any way to measure how long the actual execution takes as if it were the only thing running on the system, for example the amount of processor time spent on the program's execution?

If possible, would it also be possible for multiprocessor programs (I parallellize using OpenMP) without getting nonsense/incomparable data?
There's an article that could be of help -> http://cplusplus.com/forum/articles/39713/
Last edited on
Thanks, that's a great article on explaining which timing functions work and which don't.
Sadly, it features the same problem as I've encountered: the time measured is actual time, which is influenced by other programs running in the background and varies from run to run, so I guess there's no real answer yet.

Thanks for the help!
Topic archived. No new replies allowed.