The special problem of time updates

Marc Lehmann schmorp at schmorp.de
Tue May 6 15:25:18 CEST 2014


On Tue, May 06, 2014 at 10:43:23AM +0200, Laska Radek <radek.laska at comap.cz> wrote:
> 1) There is example in documentation how avoid this. Is this example
> correct? I think there should be:
>   ev_timer_set (&timer, after  +  (ev_time () - ev_now () ), 0.);
>   instead of:
>   ev_timer_set (&timer, after + ev_now () - ev_time (), 0.);

Well spotted - yes, you are right, the formula in the documentation was
wrong (and is now fixed).

> 2)  It will be nice add ev_time to C++ wrapper (ev++.h). Is it possible
> in next version?

It's already there, as ev++.h provides all of ev.h as well, so ev_time is
available whenever you include ev++.h

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the libev mailing list