We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 697aef5 commit bdca91dCopy full SHA for bdca91d
js/lib/subscriber.js
@@ -70,7 +70,7 @@ async function subscriberRoutine(
70
71
if (measureRTT) {
72
try {
73
- const now = BigInt(Date.now()) * 1000n;
+ const now = process.hrtime.bigint() / 1000;
74
const timestamp = BigInt(message); // µs
75
const rtt = now - timestamp;
76
0 commit comments