Spring Framework Example - meature time using StopWatch

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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 t

Statistics

  • Total Hits - 20075

  • Total Votes - 99 votes

  • Vote Up - 42 votes

  • Vote Down - 57 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Spring

  • Submitted By - Javin Paul

  • Submitted on - 2012-08-25 08:31:58

Description

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 method or code block. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements