Sundials were widely used in ancient times .
Clocks use different ways to measure time .