Help me to make my simple ball game

hi to all …
i want to make a simple game like “ballance”.
i know how i can to write control ball script.
now i need to a timer script that player should spend level is this time.
whats the best code to make timer ?

There’s a class in this thread that implements a simple timer.