[asio] deadline_timer not waiting properly?

Hello,
I tried using the boost deadline_timer in this simple test application, but
had some trouble. The goal is for the timer to trigger every 45 milliseconds
using the "expires_at()" member function of the deadline_timer. (I need an
absolute time, so I'm not considering expires_from_now(). I am also not
concerned about drift at the moment). When I run the program, wait() does
not wait for 45 ms! Yet, no errors are reported. Am I using the library
incorrectly somehow?
-- Dylan
Sample program:
#include

That worked. Thanks Igor!
On Mon, Mar 21, 2011 at 7:34 PM, Igor R
boost::posix_time::ptime Start = boost::posix_time::microsec_clock::local_time();
change to universal_time()
boost::posix_time::microsec_clock::local_time();
change to universal_time() _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
Dylan Klomparens
-
Igor R