We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca66717 commit cfefe5bCopy full SHA for cfefe5b
src/scheduler.cpp
@@ -21,11 +21,7 @@ CScheduler::~CScheduler()
21
#if BOOST_VERSION < 105000
22
static boost::system_time toPosixTime(const boost::chrono::system_clock::time_point& t)
23
{
24
- boost::chrono::system_clock::duration d = t.time_since_epoch();
25
- boost::chrono::microseconds usecs = boost::chrono::duration_cast<boost::chrono::microseconds>(d);
26
- boost::system_time result = boost::posix_time::from_time_t(0) +
27
- boost::posix_time::microseconds(usecs.count());
28
- return result;
+ return boost::posix_time::from_time_t(boost::chrono::system_clock::to_time_t(t));
29
}
30
#endif
31
0 commit comments