Instrument for measuring rate of climb or descent of an aircraft