Skip to content

Commit

Permalink
MILLIS: just return millis
Browse files Browse the repository at this point in the history
  • Loading branch information
magicprinc committed Nov 21, 2023
1 parent e244228 commit dcacacc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static long getTimeInMs(long t, ChronoUnit unit) {
case MICROS:
return TimeUnit.MICROSECONDS.toMillis(t);
case MILLIS:
return TimeUnit.MILLISECONDS.toMillis(t);
return t;
case SECONDS:
return TimeUnit.SECONDS.toMillis(t);
case MINUTES:
Expand Down

0 comments on commit dcacacc

Please sign in to comment.