Skip to content

Commit

Permalink
fix(lyra): fixes performance calculation on browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Jun 7, 2022
1 parent abc90ae commit 41f903a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/lyra/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export function getNanosecondsTime(): bigint {
return process.hrtime.bigint();
}

return BigInt(performance.now() * 1000);
return BigInt(Math.floor(performance.now()) * 1000);
}

0 comments on commit 41f903a

Please sign in to comment.