Measuring the temperature of flows with a pulsating velocity