This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new 9c6c5d9  Fix wrong time unit in the comments of MathUtils (#2798)
9c6c5d9 is described below

commit 9c6c5d9dc626d020e3efa995ad75fe49ccacc23a
Author: Shen Wenbing <[email protected]>
AuthorDate: Tue Oct 5 17:09:12 2021 +0800

    Fix wrong time unit in the comments of MathUtils (#2798)
---
 .../src/main/java/org/apache/bookkeeper/common/util/MathUtils.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/bookkeeper-common/src/main/java/org/apache/bookkeeper/common/util/MathUtils.java
 
b/bookkeeper-common/src/main/java/org/apache/bookkeeper/common/util/MathUtils.java
index 43d5d77..7e38d85 100644
--- 
a/bookkeeper-common/src/main/java/org/apache/bookkeeper/common/util/MathUtils.java
+++ 
b/bookkeeper-common/src/main/java/org/apache/bookkeeper/common/util/MathUtils.java
@@ -71,7 +71,7 @@ public class MathUtils {
      * the only conversion happens when computing the elapsed time.
      *
      * @param startNanoTime the start of the interval that we are measuring
-     * @return elapsed time in milliseconds.
+     * @return elapsed time in microseconds.
      */
     public static long elapsedMicroSec(long startNanoTime) {
         return TimeUnit.NANOSECONDS.toMicros(System.nanoTime() - 
startNanoTime);
@@ -82,7 +82,7 @@ public class MathUtils {
      * the only conversion happens when computing the elapsed time.
      *
      * @param startNanoTime the start of the interval that we are measuring
-     * @return elapsed time in milliseconds.
+     * @return elapsed time in nanoseconds.
      */
     public static long elapsedNanos(long startNanoTime) {
        return System.nanoTime() - startNanoTime;

Reply via email to