A Method to Measure the Diffusion Coefficient in Liquids