A clepsydra might be what you're thinking about. It is an ancient time-mechanism (much like a clock) that is powered by running water.
A clepsydra is a timepiece that uses the also known as a water clock. Time is measured by the regulated inflow and outflow of water in a vessel.