summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util/timer.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-01-31 22:45:37 +0100
committerFlorian Dold <florian@dold.me>2024-01-31 22:45:37 +0100
commitcb342d20ffddda3eb79950a69a328e399e76817d (patch)
treed74829e08bb1fa754b8855a3b7e065106e7697b4 /packages/taler-wallet-core/src/util/timer.ts
parent361c2e03ec7e8020657173d00dabab640f018709 (diff)
downloadwallet-core-cb342d20ffddda3eb79950a69a328e399e76817d.tar.gz
wallet-core-cb342d20ffddda3eb79950a69a328e399e76817d.tar.bz2
wallet-core-cb342d20ffddda3eb79950a69a328e399e76817d.zip
util: provide fallback for perf timer on quickjs
Diffstat (limited to 'packages/taler-wallet-core/src/util/timer.ts')
-rw-r--r--packages/taler-wallet-core/src/util/timer.ts2
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 d198e03c9..28680c1a4 100644
--- a/packages/taler-wallet-core/src/util/timer.ts
+++ b/packages/taler-wallet-core/src/util/timer.ts
@@ -94,7 +94,7 @@ export const performanceNow: () => bigint = (() => {
return () => BigInt(Math.floor(performance.now() * 1000)) * BigInt(1000);
}
- return () => BigInt(0);
+ return () => BigInt(new Date().getTime()) * 1000n * 1000n;
})();
const nullTimerHandle = {