Theory and applications of time-resolved spectroscopies