Boost logo

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-08 06:14:17


On Mon, 07 Sep 2009 16:11:56 +0200, Igor R <boost.lists_at_[hidden]> wrote:

> Probably something like this would help:
> expires_at(ptime::microsec_clock::universal_time() + TIMETOADD);

I tried the following (asuming that it was what you ment):

void GMyTask::OnAsioTimer()
{
     std::cout << "Tick" << std::endl;
     m_AsioTimer.expires_at(boost::posix_time::microsec_clock::universal_time()
+ boost::posix_time::millisec(1000));
     m_AsioTimer.async_wait(boost::bind(&GMyTask::OnAsioTimer, this));
}

Problem remains the same.


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