Measuring the diameter of the Sun