Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Duration class 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());
 
PREVIOUS NEXT
Tagged: #Duration #class #java
ADD COMMENT
Topic
Name
7+7 =