Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java measure execution time

Instant start = Instant.now();
Thread.sleep(63553);
Instant end = Instant.now();
System.out.println(Duration.between(start, end)); // prints PT1M3.553S
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #measure #execution #time
ADD COMMENT
Topic
Name
2+4 =