Temporal focusing based ultrafast high-resolution spectroscopy