Measuring characteristics of individual pulses