Recovering optimal precision in quantum sensing with time domain imperfections — arXiv2