diff --git a/client/java/src/main/java/com/linecorp/centraldogma/client/updater/CentralDogmaBeanFactory.java b/client/java/src/main/java/com/linecorp/centraldogma/client/updater/CentralDogmaBeanFactory.java index 3a1e6387f4..f044569604 100644 --- a/client/java/src/main/java/com/linecorp/centraldogma/client/updater/CentralDogmaBeanFactory.java +++ b/client/java/src/main/java/com/linecorp/centraldogma/client/updater/CentralDogmaBeanFactory.java @@ -328,7 +328,7 @@ public T get(T defaultValue, Class beanType, Consumer changeListener, throw ex; } } - final long elapsedMillis = System.nanoTime() - t0; + final long elapsedMillis = TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - t0); logger.debug("Initial value of {} obtained in {} ms: rev={}", settings, elapsedMillis, latest.revision()); }