taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit cb342d20ffddda3eb79950a69a328e399e76817d
parent 361c2e03ec7e8020657173d00dabab640f018709
Author: Florian Dold <florian@dold.me>
Date:   Wed, 31 Jan 2024 22:45:37 +0100

util: provide fallback for perf timer on quickjs

Diffstat:
Mpackages/taler-wallet-core/src/util/timer.ts | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 = {