A novel method for measuring the particle confinement time by using spectroscopic data has been developed. The electron influx into plasma is estimated from the intensity of the Hα line. The first results obtained by this method in the L-2M stellarator are discussed.