The shadow and the jar
Before there were clocks there was the sun, and the sun is a poor timekeeper at night. The earliest fix was the shadow stick, a gnomon planted upright so that its shadow swept a marked ground. Egyptian shadow clocks survive from around 1500 BCE, and obelisks did the same job at civic scale. The trouble was the dark, and cloud, and winter. So people turned to water. A clepsydra, literally a "water thief," is a vessel with a small hole: fill it, and the falling level reads the passing hours. Egyptian examples date to the reign of Amenhotep III, and their inner walls carry separate scales for different months, because a night in winter is longer than a night in summer, and the hours were stretched to fit.