MasterMedo / typetest

:chart_with_upwards_trend: Improve your typing speed without leaving the terminal.
MIT License
24 stars 8 forks source link

Plot typing speed throughout the duration of a single test #5

Open MasterMedo opened 3 years ago

MasterMedo commented 3 years ago

Create a diagram showing typing speed throughout the duration of a single test. The program logs the time it takes to press each character and the typing speed the character was pressed with. This information is stored in typetest/results/char_speeds.csv. It might look something like this:

character time to press [s] speed [wpm]
t 0.1237139701843261 96.99793792181062
w 0.0068349838256835 1755.673503557974
o 0.2604360580444336 46.07656900548177
0.1182172298431396 101.5080459584663
m 0.0827426910400390 145.0279154468546
a 0.2301681041717529 52.13580762278653
d 0.1425678730010986 84.17043578890686
e 0.0863380432128906 138.9885565324968
0.1082880496978759 110.8155519790045
s 0.1031601428985595 116.3239955163687
i 0.0509469509124755 235.5391203021241
d 0.1305589675903320 91.91249150846232
e 0.0973918437957763 123.2136032372806

It would be beneficial if after the typing test is completed, the user is presented with a diagram showing his typing speed throughout the test. This can be added with an option e.g. --plot-wpm.

MasterMedo commented 3 years ago

For reference, here is how this plot looks like on monkeytype.com, the x-axis is the number of characters (character index):

Screenshot 2021-10-16 at 08 28 46 Screenshot 2021-10-16 at 08 34 09
parth-verma7 commented 2 years ago

Hi @MasterMedo I would like to work upon this issue, can you please assign it to me?

MasterMedo commented 2 years ago

Sure, create a PR for it, and link it to the issue. Hack at it :)