How did people keep track of time before the invention of clocks?

they used a shadow of a dog
sundial
the movement around the moon
none of the above