Hier hast du ein Beispiel.
http://bitfan.de/download/timer.zip