Rapid and Accurate Measurements of Refractive Index in the Infrared