Satbir
Satbir

Reputation: 6496

Measuring absolute time taken by a process

I am measuring time taken by my process using

QueryPerformanceCounter and QueryPerformanceFrequency. It works fine.

As my system is a single processor based system. So many process sharing it.Is it possible to measure CPU time allotted to my process. SO that i can measure absolute time taken.

Platform : Windows Language : C++

Upvotes: 0

Views: 481

Answers (2)

Alex Martelli
Alex Martelli

Reputation: 881537

GetProcessTimes is probably the call you're looking for.

Upvotes: 1

Crowe T. Robot
Crowe T. Robot

Reputation: 2045

Couldn't you use a profiler to measure the time?

Upvotes: 1

Related Questions