This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calculationg execution time

 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
if i want to calculate time taken by my program to execute
how do i?
i can use threads but it will also count it's time to execute
is there any tool available with jdk??
thanks in advance
Bhupendra
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has nothing to do with I/O (Input/Output), so I'm moving this to Java in General (Beginner).
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could grab the time at the start and at the end and subtract.
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Mahajan Bhupendra
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks mike Thnku very much..
i was so frustrated that day that i couldn't think such a simple logic but thanks Mike..
Bhupendra
Originally posted by Mike Curwen:
[B][/B]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic