We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1cc3d29 + a278534 commit fa1f768Copy full SHA for fa1f768
docs/src/main/asciidoc/vertx.adoc
@@ -158,7 +158,7 @@ Now let's use the Vert.x API to implement the artificially delayed reply with th
158
// Delay reply by 10ms
159
vertx.setTimer(10, l -> {
160
// Compute elapsed time in milliseconds
161
- long duration = MILLISECONDS.convert(System.nanoTime() - start, NANOSECONDS);
+ long duration = TimeUnit.MILLISECONDS.convert(System.nanoTime() - start, TimeUnit.NANOSECONDS);
162
163
// Format message
164
String message = String.format("Hello %s! (%d ms)%n", name, duration);
0 commit comments