how to measure period on oscilloscope