[PATCH] added ev_timer_remain()

Marc Lehmann schmorp at schmorp.de
Mon Jun 8 14:08:12 CEST 2009


On Mon, Jun 08, 2009 at 06:46:05PM +0700, "Denis F. Latypoff" <denis at gostats.ru> wrote:
>   I was need to know how many time remain before fire in the timer, so
>   I wrote a small patch. I would like libev to have this functionality
>   in the future releases ;)

this functionality is atcually available in all versions of libev already,
(temporarily) stopping the timer makes it possible to read the remaining
time, without slippage.

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



More information about the libev mailing list