Instrument for measuring velocity or speed