1

In eclipse, I couldn't find how to get the IDE to display the amount of time it took for a program to execute. I've checked help and googled and I'm not finding anything

I don't want to write startTime,endTime code around each & every line. Is there any way we can do it in eclipse or through eclipse plugin without writing code.

1 Answers1

0
long startTime = System.nanoTime();    
// ... the code being measured ...    
long estimatedTime = System.nanoTime() - startTime;

Props to: How do I measure time elapsed in Java?

Community
  • 1
  • 1
PlsWork
  • 1,432
  • 1
  • 11
  • 27