How did the people who made the first clock know what time it was?