mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 10:47:22 +08:00
resetting
This commit is contained in:
parent
2abd1c202f
commit
0a259d7eb3
1 changed files with 6 additions and 1 deletions
|
|
@ -244,7 +244,7 @@ export function setKeypressDuration(val: number): void {
|
|||
|
||||
let t2 = 0;
|
||||
let d2 = 0;
|
||||
const a: number[] = [];
|
||||
let a: number[] = [];
|
||||
|
||||
export function recordKeyupTime(key: string): void {
|
||||
const now = performance.now();
|
||||
|
|
@ -327,6 +327,11 @@ export function resetKeypressTimings(): void {
|
|||
array: [],
|
||||
},
|
||||
};
|
||||
a = [];
|
||||
t1 = 0;
|
||||
d1 = 0;
|
||||
t2 = 0;
|
||||
d2 = 0;
|
||||
if (spacingDebug) console.clear();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue