Timer

Hello, does someone know how to make a working timer in iPad playground? I tried many times. But always get a runtime error which only says: „check your code“. I want make a little digital watch