views:

138

answers:

2

Hi

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++

A: 

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

Crowe T. Robot
+1  A: 

GetProcessTimes is probably the call you're looking for.

Alex Martelli