With shafts, gears and the like, the general method of determining the rotational speed is to use some form of tachometer or shaft encoder. These give out a pulse at regular angular intervals. It we have N pulses per rev then obviously we have a pulse every (360/N) degrees. Determining the speed is nominally very simple: just measure the time between successive pulses. If this period is Tk seconds and the angle travelled is (360/ N) degrees then the rotational speed is simply estimated by 360/(N*Tk) degrees/second or 60/(N*Tk) rpm.