Skip to content

Commit 75587cc

Browse files
committed
Round milliseconds to at most 3 decimals.
1 parent fd06cd3 commit 75587cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/ts/helpers/parse.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function parseToNumber(input: string | number, filterFn: (_: number) => boolean)
5858
}
5959

6060
export function formatMilliseconds(millis: number): string {
61-
return `${millis} ms`;
61+
return `${roundNumber(millis, 3)} ms`;
6262
}
6363

6464
export function formatDateLocalized(date: Date): string {

0 commit comments

Comments
 (0)