Cylinders with length measuring function