The clock on the wall was given a human characteristic, or we can say that it represented a person. Certainly, a clock can not laugh. Hence, the figurative language that has been used is personification.
hope this helps and is right!! p.s. i really need brainliest :)