|
Boost Users : |
Subject: Re: [Boost-users] [asio] deadline_timer makes wrong delay when using date command
From: Igor R (boost.lists_at_[hidden])
Date: 2009-09-07 10:11:56
> 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.
Probably something like this would help:
expires_at(ptime::microsec_clock::universal_time() + TIMETOADD);
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