How did people measure things before the inventions such as rulers?

People used to measure with their body parts, such as the length or width of their hand, the length of the foot, etc.