Remove the cylinder if you can
Open the door, undo the retaining screw on the edge of the door, turn the key slightly to line up the cam, then slide the cylinder out. Measuring the loose cylinder is usually more accurate than measuring it in the door.