Pulsed characteristic-function measurement of a damped harmonic oscillator