Skip to content

How to measure execution time in Java

11
  • Anupam Patra
  • The Narcissist
  • tan
  • Ranjith
  • Ravi Akula
  • Debajyoti Ghosh
How to measure execution time in Java

There are two ways to measure execution time of a method or code block in Java. System.nanoTime() and System.currentTimeInMillis() which can be used to calculate difference between two time interval which can than be used to measure execution time of any

Read this post on javarevisited.blogspot.com


Popular Articles by this blogger