Measurement of gas flowrate by using a heat pulse