gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: util: provide fallback for pe


From: gnunet
Subject: [taler-wallet-core] branch master updated: util: provide fallback for perf timer on quickjs
Date: Wed, 31 Jan 2024 22:45:42 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new cb342d20f util: provide fallback for perf timer on quickjs
cb342d20f is described below

commit cb342d20ffddda3eb79950a69a328e399e76817d
Author: Florian Dold <florian@dold.me>
AuthorDate: Wed Jan 31 22:45:37 2024 +0100

    util: provide fallback for perf timer on quickjs
---
 packages/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
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 = {

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]