|
Boost Users : |
From: Christian Henning (chhenning_at_[hidden])
Date: 2005-10-04 16:26:09
Why not just write a wrapper function to make it as easy as you want?
Like:
void sleep_seconds( unsigned int nSeconds )
{
boost::xtime xt;
boost::xtime_get(&xt, boost::TIME_UTC);
xt.sec += nSeconds; // change xt to next second
boost::thread::sleep(xt);
}
Christian
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