Karthi Srinivasa wrote:
I am trying to find the Thread execution elapsed time.but it seems fine for only certail loops.
Please elaborate what you mean by "fine for only certain loops". You take a time stamp before you go into the loop, and you take a time stamp after you come out. And the difference is the elapse time. Pretty simple mechanism that I find it hard to believe that certain loops won't work.