Check this example.
also check the documentation on Timer class
i need to set current time using timer control?
not 100% i understand what you want, but i imagine you're trying to display the time.
i have an example here:
that shows you how to do it with a timer, and with a setTimeout() function