|
Boost Users : |
Subject: Re: [Boost-users] [asio] deadline_timer makes wrong delay when using date command
From: Bjarne Laursen (bla_at_[hidden])
Date: 2009-09-07 08:46:35
On Mon, 07 Sep 2009 13:33:25 +0200, Igor R <boost.lists_at_[hidden]> wrote:
>> I have used a deadline_timer to generate a polling every 1 second.
>> Unfortunely when I use the linux date command the timing is curupted.
>> (If I set the clock back 1 min. I will be missing 60 pollings).
>> What can I do about that?
>
> Do you use expire_from_now()?
Well I did not. I used
expires_at(expires_at() + TIMETOADD);
because that is the behaviour that is specified for the timer function
that I'm implementing.
but I have just tested expire_from_now(). And it does the exact same thing.
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