A time-resolved spectrograph for use with triggered light sources