On Fri, Dec 17 2010, Daniel wrote: > Now, I don't re-new the timer object, but just start and stop it as > needed. It seems that between restarts, the timer remembers how much it > had counted so far. It this intentional, and should I thus re-new the > timer object every time?
Yes, it is. See libev timer documentation[1]. OTOH, I've justed pushed a patch adding :again() method to reset a timer in git master. You should gave it a try. [1] http://pod.tst.eu/http://cvs.schmorp.de/libev/ev.pod -- Julien Danjou ❱ http://julien.danjou.info
pgpnv3BRhP2Bk.pgp
Description: PGP signature
