The special problem of time updates

Laska Radek radek.laska at comap.cz
Tue May 6 16:53:48 CEST 2014


Thank you for quick response (and for nice library of course).

Radek Laska

-----Original Message-----
From: Marc Lehmann [mailto:schmorp at schmorp.de] 
Sent: Tuesday, May 06, 2014 3:25 PM
To: Laska Radek
Cc: libev at lists.schmorp.de
Subject: Re: The special problem of time updates

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