Instrument for measuring height