| 23 | |
| 24 | #if BOOST_VERSION < 105000 |
| 25 | static boost::system_time toPosixTime(const boost::chrono::system_clock::time_point& t) |
| 26 | { |
| 27 | // Creating the posix_time using from_time_t loses sub-second precision. So rather than exporting the time_point to time_t, |
| 28 | // start with a posix_time at the epoch (0) and add the milliseconds that have passed since then. |
| 29 | return boost::posix_time::from_time_t(0) + boost::posix_time::milliseconds(boost::chrono::duration_cast<boost::chrono::milliseconds>(t.time_since_epoch()).count()); |
| 30 | } |
| 31 | #endif |
| 32 | |
| 33 | void CScheduler::serviceQueue() |