Measuring of wall thicknesses