How to use function guit

I try to make a timer to my programm.I try to use function quit to make a timer.But a have a error.help me.


Hope this helps,
-Cass