A fast temperature diagnostic for time-resolved measurements in harsh environments based on an acousto-optically modulated quantum cascade laser is demonstrated in shock-heated mixtures of carbon monoxide. The temperature measurements made with this system are largely insensitive to beam steering noise.