8 Sep
2009
8 Sep
'09
10:14 a.m.
On Mon, 07 Sep 2009 16:11:56 +0200, Igor R
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.