Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

running time of java program

long startTime = System.nanoTime();
.....your program....
long endTime   = System.nanoTime();
long totalTime = endTime - startTime;
System.out.println(totalTime);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #running #time #java #program
ADD COMMENT
Topic
Name
1+6 =