what is the ancient system of measurement