The Egyptians first measured time during the day using shadow clocks - similar to sun dials. It seems that the first shadow clocks were based on the shadow from a bar crossing marks which represented hourly periods. At midday, the shadow clock would be reversed and hours counted down to dusk.
Next the Egyptians invented the water clock or 'clepsydra'. It worked by allowing water to drip through a small hole from one container to a lower one. Marks on one container indicated how many hours had passed. Some Egyptian clepsydras had different sets of marks for different seasons.