Kinda vague question...

If the Start and Stop Buttons are sensors between a known set distance, then all you need is the addition of a bit of math to give you mph.

If however you're counting pulses from a tacho or other sensor, then that code is probably not suitable.