The pendulum is made to oscillate between an LED and photo-transistor. The time period is measured by monitoring the photo-transistor signal. The resolution of measurement is around 100 micro seconds, so that the small variation of the period with amplitude can be studied.