Measurement of the neutron total cross section of ^3He in the energy range 0.1--500 eV