cleaned up a couple lines

This commit is contained in:
typer 2020-09-10 22:59:35 -07:00
parent 68c404b06e
commit 374fbdfd9a

View file

@ -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 () {