Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

To find the Elapsed time of concurrent thread.

 
Karthi Srinivasa
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to find the Thread execution elapsed time.but it seems fine for only certail loops.

Record.java



Parser.java



ParserPool.java




Main.java



C:\FileParser\testFolder\TestFile.txt


 
Henry Wong
author
Sheriff
Posts: 22542
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!