Gated Spectrometer