Running wpm often results in a crash as soon as you type a key, because the code for printing stats doesn't check for divisions by zero, when elapsed=0.
This code should clean this up. Thanks for this project, it's great to use on breaks from work or first thing in the morning.
Running
wpm
often results in a crash as soon as you type a key, because the code for printing stats doesn't check for divisions by zero, whenelapsed=0
.This code should clean this up. Thanks for this project, it's great to use on breaks from work or first thing in the morning.