a machine that is used to measure the length of a pipe