Smithsonian Inventions notes that the mechanical clock was invented in the 14th century.
Smithsonian Inventions: A Visual Encyclopedia (London: Penguin Random House, 2018), 138
MECHANICAL CLOCKS
The first mechanical clocks were invented in Europe around the start of the 14th century. Nobody had clocks at home, so clocks were put on towers at the center of towns and cities