typically, when you "measure" a particle, you are *actually* measuring the decay products of said particle. When you plot the number of events as a function of the total energy of the decay products, you do not get a single spike but a distribution of energy that (assuming the decay did not happen too close to threshold) reproduces a Cauchy (or Breit-Wigner) distribution:
\frac{d\sigma}{dE}\sim\frac{1}{(E-E_0)^2+\Gamma^2/4}
The center of the distribution (E_0) is interpreted as the mass of the resonance, and Gamma is the FWHM, representing the inverse-lifetime of the resonance.
This is all explained quite well in most QM textbooks. See Sakurai's "Modern QM" for example. In fact, Jackson's "Intro to E&M" text also talks about it, as does Landau-Lif****z, since this result comes from wave mechanics and thus there is an analogy in classical E&M.
Hope that helps!