Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java get excectuon time

long startTime = System.nanoTime();
methodToTime();
long endTime = System.nanoTime();

long duration = (endTime - startTime);  //divide by 1000000 to get milliseconds.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #excectuon #time
ADD COMMENT
Topic
Name
5+9 =