Time-Gated Spectrum Analysis