Measure pulse width