The Invention of the Mechanical Clock