How to measure the rate of a chemical reaction?