Problem using libev c++ timer

Zsbán Ambrus ambrus at
Fri Dec 23 15:36:02 CET 2011

On Fri, Dec 23, 2011 at 1:09 PM, Savio Sebastian
<savio_joysebastian at> 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.


More information about the libev mailing list