I am doing a typing speed test, however, instead of waiting to 60 seconds, I am using a specific amount of words and a stopwatch to time it.
My recent calculation is:
WPM = number_of_words / (time / 60)
However, if I spend 13 seconds typing 8 words, then my WPM is around 37. I tested this line of code on a real calculator, and it shows that this line is working, which means my formula is incorrect. Can someone help me with this?
The code should run correctly, you need to check if the time is being timed in miliseconds, as that is a common practice. Then you shouldn't divide by 60. Other than that, I think it should work as intended, hope it helps.