Skip to content

Commit fa1f768

Browse files
Merge pull request #6516 from viniciusfcf/patch-1
Using TimeUnit.NANOSECONDS instead of NANOSECONDS
2 parents 1cc3d29 + a278534 commit fa1f768

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/main/asciidoc/vertx.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ Now let's use the Vert.x API to implement the artificially delayed reply with th
158158
// Delay reply by 10ms
159159
vertx.setTimer(10, l -> {
160160
// Compute elapsed time in milliseconds
161-
long duration = MILLISECONDS.convert(System.nanoTime() - start, NANOSECONDS);
161+
long duration = TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS);
162162
163163
// Format message
164164
String message = String.format("Hello %s! (%d ms)%n", name, duration);

0 commit comments

Comments
 (0)