Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java time code


final long startTime = System.currentTimeMillis();
for (int i = 0; i < length; i++) {
  // Do something
}
final long endTime = System.currentTimeMillis();

System.out.println("Total execution time: " + (endTime - startTime));

Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #java #time #code
ADD COMMENT
Topic
Name
3+9 =