diff --git a/public/js/script.js b/public/js/script.js index fe3432353..0117a0cc0 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -2314,8 +2314,6 @@ function startTest() { } testActive = true; testStart = Date.now(); - const stepIntervalMS = 1000; - const expectedStepEnd = testStart + stepIntervalMS; // if (config.mode == "time") { restartTimer(); showTimer(); @@ -2336,6 +2334,7 @@ function startTest() { }, }; //use a recursive self-adjusting timer to avoid time drift + const stepIntervalMS = 1000; (function loop(expectedStepEnd) { const delay = expectedStepEnd - Date.now(); timer = setTimeout(function () {