This is on my list of projects to do, along with a dual slalom timing system (I’m currently writing the software for the DS system, with the next step being to connect it to the start gates, followed by accurate finish line timing)
What you want can be done fairly easy with an arduino, a light gate, a couple buttons, and some way of outputting the results (LCD, or computer).
However, the cost is all in the light gate, if you want something repeatable/accurate. Arduino is £25ish, LCD £5ish, buttons £couple.
You’re talking upwards of £130 for a thru-beam set-up, but I’ve still not decided on what one, as everytime I look at spec sheets, my head starts to hurt!
I really need to sit down, work out the required response times for a tyre/rim whizzing past at XXmph, then find something suitable.
Off course, you could always use something like a pressure pad, but then you need to make sure you put it somewhere that you’re likely to have weight on it while going over the top of it.