Instrument for measuring distance between two points