Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

To find the Elapsed time of concurrent thread.  RSS feed

 
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: 23283
125
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!