Water clocks were invented to address the limitations of sundials and were used in ancient times for timekeeping. The oldest known example dates back to 1400 BC and was discovered in the tomb of the Egyptian pharaoh Amenhotep III. The Greeks called the device the clepsydra. https://www.ancient-origins.net/ancient-technology/water-clock-001818