convert performance.now to integer before converting to BigInt
This commit is contained in:
parent
abbf899b97
commit
df77676977
@ -91,7 +91,7 @@ export const performanceNow: () => bigint = (() => {
|
||||
// @ts-ignore
|
||||
if (typeof performance !== "undefined") {
|
||||
// @ts-ignore
|
||||
return () => BigInt(performance.now()) * BigInt(1000 * 1000);
|
||||
return () => BigInt(Math.floor(performance.now() * 1000)) * BigInt(1000);
|
||||
}
|
||||
|
||||
return () => BigInt(0);
|
||||
|
Loading…
Reference in New Issue
Block a user