How did the person who invented the clock know what time it was?