Tutorials Shared by the Internet Community
|Top Tutorials||New Tutorials||Submit||Login||Register|
Tutorial Basic Detail
Total Hits: 11909
Total Votes: 139 votes
Average Rating: 2.81 out of 5
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.