I want to know how much time each thread takes in executing by any mean…as we can’t create timer over there ,so is any method is there to do so.
I have used visual profiler but it don’t seem to be doing that thing …
any type of help is welcomed…
From what I understand, you want to compare the time taken for each thread?
I’d imagine you can use clock() to determine and start and stop time, and have each thread store the difference in an output array that you copy back to the host. Then you can iterate over the array and print out all of the timings from there. If your threads don’t take very long, I’m not sure how accurate clock() will be though…regardless, it’s worth a try!
Check out the clock SDK example…