// Custom includes
#include <time.h>
#include "../Exception.hh"
+#include "../../Scheduler/ClockService.hh"
//#include "TimeSource.mpp"
#define prefix_
prefix_ senf::log::time_type senf::log::SystemTimeSource::operator()()
const
{
- struct ::timespec tm;
- if (::clock_gettime(CLOCK_MONOTONIC, &tm) < 0)
- SENF_THROW_SYSTEM_EXCEPTION("::timer_gettime()");
- return static_cast<time_type>(tm.tv_sec)*1000000000ll+tm.tv_nsec;
+ return senf::ClockService::now();
}
///////////////////////////////cc.e////////////////////////////////////////