////////////////////////////////////////
// private members
+namespace senf { namespace scheduler { ClockService::clock_type now(); } }
+
prefix_ senf::ClockService::clock_type senf::ClockService::clock_m(abstime_type time)
{
- if (now() - baseClock_ > 1000000000ll)
+ if (senf::scheduler::now() - baseClock_ > 1000000000ll)
restart_m();
boost::posix_time::time_duration delta (time - baseAbstime_);
return baseClock_ + clock_type( delta.ticks() )
{
if (clock == 0)
return abstime_type();
- if (now() - baseClock_ > 1000000000ll)
+ if (senf::scheduler::now() - baseClock_ > 1000000000ll)
restart_m();
#ifdef BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG
return baseAbstime_ + boost::posix_time::nanoseconds(clock-baseClock_);