Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

measure running time of a statement java

// import java.time.*;
Instant start = Instant.now();
// do something
Instant end = Instant.now();
System.out.println("Duration in ms: " + Duration.between(start, end).toMillis());
Source by nullorempty.org #
 
PREVIOUS NEXT
Tagged: #measure #running #time #statement #java
ADD COMMENT
Topic
Name
2+5 =