Measuring light speed with a modulated laser diode