All timing devices, from the water clock to the digital watch, operate because of the fundamental principle that a regular pattern or cycle operates at a constant rate.
The water clock, or clepsydra, is one of the oldest tools created to tell time, known to have been in use in 16th century BC Egypt. Some claim that it may have been used in China as early as 4000BC.