Time- and frequency domain spectroscopy using synchrotron radiation