-2

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?

  • This does not seem to be a programming question so far and it's unclear why the formula should be incorrect. – NoDataDumpNoContribution Jun 01 '21 at 04:31
  • Please add such an amount of your code that we can see what is wrong. With this little information we will not get beyond guessing and chatter. – Wolf Jun 01 '21 at 09:56
  • BTW: Isn't this https://stackoverflow.com/q/32621299/2932052 closely related to your actual goal? – Wolf Jun 01 '21 at 09:58

1 Answers1

1

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.