Skip to content

Commit

Permalink
fix timestamp bug
Browse files Browse the repository at this point in the history
  • Loading branch information
timreichen committed Apr 23, 2021
1 parent bab4488 commit 91030a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ export function ensureExtension(path: string, extension: string) {

export function timestamp(time: number) {
const delta = performance.now() - time;
const unit = delta < 1000 ? "ms" : "s";
return `${Math.ceil(delta)}${unit}`;
const unit = "ms";
return `${delta}${unit}`;
}

export function size(size: number) {
Expand Down

0 comments on commit 91030a2

Please sign in to comment.