This paper presents an original investigation on a time-resolved moiré deflectometry for gas temperature measurements of long sparks in air. In order to perform a rigorous comparative investigation with the widely used quantitative schlieren method, we set up an orthogonal optical measurement system. The impacts of spatial resolution and exposure time on the measurement accuracy are investigated by comparing the measured radial distribution of the gas temperature and its time evolution during the same spark discharge event. It is found that the time-resolved moiré deflectometry with an exposure time of 1.0 μs can accurately measure the gas temperature evolution during the isobaric heating and relaxation process of long sparks. The measured results of the expansion rate of cross-section π·〖R_"g" 〗^2 and average temperature Tg confirms that the energy loss is dominated by thermal conduction during isobaric heating and relaxation process after the extinction of discharge current. The moiré deflectometry can achieve a finer spatial resolution than the quantitative schlieren method, which is beneficial to the reconstruction of steep radial temperature distribution and the suppression of measured temperature fluctuation. Moreover, the moiré deflectometry can obtain a sub-microsecond exposure time by increasing the power of continuous-wave laser source, which shows its potential to capture the rapid changes in gas temperature during the fast-heating process.