Skip to content

Commit

Permalink
Fix wrong time unit in the comments of MathUtils (#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
wenbingshen authored Oct 5, 2021
1 parent 29829a4 commit 9c6c5d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static long elapsedMSec(long startNanoTime) {
* 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);
Expand All @@ -82,7 +82,7 @@ public static long elapsedMicroSec(long startNanoTime) {
* 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;
Expand Down

0 comments on commit 9c6c5d9

Please sign in to comment.