Timing, stroke and speed measurement