Temporal quantum correlations and their applications in quantum metrology