diff options
Diffstat (limited to 'packages/taler-wallet-core/src/util/timer.ts')
-rw-r--r-- | packages/taler-wallet-core/src/util/timer.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/util/timer.ts b/packages/taler-wallet-core/src/util/timer.ts index 7c849fbcc..d9fe3439b 100644 --- a/packages/taler-wallet-core/src/util/timer.ts +++ b/packages/taler-wallet-core/src/util/timer.ts @@ -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); |