Boost logo

Boost Users :

Subject: Re: [Boost-users] Inverval timer.
From: Igor R (boost.lists_at_[hidden])
Date: 2009-02-12 10:45:50


>
> Hello, I want some function / functor to run every n seconds, is there
> right
> timer in boost for that? I tried to loop deadline_timer but wasn't able to
> get
> it work more than one time.

You have to re-start the timer after it expires, i.e. call again
expires_from_now(), async_wait() in the handler.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net