Who Invented the First Clock?

Sun dials were the first clocks and ere used by many different ancient civilizations. The first spring clock was invented by Peter Henlein, but I guess it didn’t work real well. Pendulum clocks were invented by Christian Huygens.