From f57fb22afc7aa4cb7cc586d1ebf64f992e544a5d Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sun, 8 Feb 2026 14:16:35 +0100 Subject: [PATCH] more accurate timer between client and api --- src/run.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/run.ts b/src/run.ts index 8a1c99a..9946190 100644 --- a/src/run.ts +++ b/src/run.ts @@ -38,10 +38,10 @@ export async function startRun( if (!mode) return; - let start = Date.now(); - const runId = await addRun(problemId, mode); + let start = Date.now(); + currentRun = { id: runId, problemId,