he had lived in the village more years than he had lived in the city as a clockmaker , first as an apprentice , then a master , then the creator of the world 's finest , most magnificent clock and finally , the blind prisoner of a lunatic king .