Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(progress): measure delivery intervals with a monotonic clock

morlutoed881c6d2ef6
diff --git a/src/application/ProgressReporter.ts b/src/application/ProgressReporter.ts
index cf5ed7b7f..bb5a98f0d 100644
--- a/src/application/ProgressReporter.ts
+++ b/src/application/ProgressReporter.ts
@@ -23,7 +23,7 @@ export const createProgressReporter = (
} = {},
): ProgressReporter => {
const minimumIntervalMs = options.minimumIntervalMs ?? 100;
- const now = options.now ?? Date.now;
+ const now = options.now ?? (() => performance.now());
let lastCompleted = -1;
let lastSentAt = Number.NEGATIVE_INFINITY;
let sequence = 0;