Measuring comovement in the time-frequency space