On Fri, Dec 23, 2011 at 1:09 PM, Savio Sebastian <savio_joysebastian at yahoo.com> wrote: > stopTimer.start(0.,5); > > Here my problem is the timeout call back function is getting called > immediatly after the program execution begins You are setting the watcher to trigger after 0 seconds, then repeat every 5 second. No wonder it fires immediately. Ambrus