Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to calculate time taken by java program

long start = System.currentTimeMillis();
// some time passes
long end = System.currentTimeMillis();
long elapsedTime = end - start;
Source by stackify.com #
 
PREVIOUS NEXT
Tagged: #calculate #time #java #program
ADD COMMENT
Topic
Name
1+7 =