mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-11 01:15:49 +08:00
added debugging function
This commit is contained in:
parent
d9390645de
commit
a2c1311a57
3 changed files with 21 additions and 0 deletions
|
@ -27,3 +27,5 @@ global.crownTest = async () => {
|
|||
};
|
||||
|
||||
global.filterDebug = Account.toggleFilterDebug;
|
||||
|
||||
global.stats = TestStats.getStats;
|
||||
|
|
|
@ -23,3 +23,4 @@ import "./input-controller";
|
|||
import "./ready";
|
||||
import "./about-page";
|
||||
import * as Account from "./account";
|
||||
import * as TestStats from "./test-stats";
|
||||
|
|
|
@ -42,6 +42,24 @@ export let keypressTimings = {
|
|||
},
|
||||
};
|
||||
|
||||
export function getStats() {
|
||||
return {
|
||||
start,
|
||||
end,
|
||||
wpmHistory,
|
||||
rawHistory,
|
||||
burstHistory,
|
||||
keypressPerSecond,
|
||||
currentKeypress,
|
||||
lastKeypress,
|
||||
currentBurstStart,
|
||||
lastSecondNotRound,
|
||||
missedWords,
|
||||
accuracy,
|
||||
keypressTimings,
|
||||
};
|
||||
}
|
||||
|
||||
export function restart() {
|
||||
start = 0;
|
||||
end = 0;
|
||||
|
|
Loading…
Reference in a new issue