Skip to content

Commit

Permalink
Round milliseconds to at most 3 decimals.
Browse files Browse the repository at this point in the history
  • Loading branch information
tobli committed Feb 6, 2017
1 parent fd06cd3 commit 75587cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/helpers/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function parseToNumber(input: string | number, filterFn: (_: number) => boolean)
}

export function formatMilliseconds(millis: number): string {
return `${millis} ms`;
return `${roundNumber(millis, 3)} ms`;
}

export function formatDateLocalized(date: Date): string {
Expand Down

0 comments on commit 75587cc

Please sign in to comment.