mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-03 04:19:06 +08:00
cleaned up a couple lines
This commit is contained in:
parent
68c404b06e
commit
374fbdfd9a
1 changed files with 1 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue