Spring Framework Example - meature time using StopWatch
Tutorials Shared by the Internet Community
Advertisements
Spring Framework Example - meature time using StopWatch
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 tStatistics
Total Hits - 33755
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. More detail...
Advertisements