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