{
struct timeval tv;
if (::ioctl(fd(), SIOCGSTAMP, &tv) < 0)
- SENF_THROW_SYSTEM_EXCEPTION("");
+ SENF_THROW_SYSTEM_EXCEPTION("could not get timestamp in DatagramSocketProtocol");
return ClockService::from_timeval(tv);
}
// this may reduce the precision, but we only care about +/- 1ms, for now
struct timeval tv;
::gettimeofday( &tv, NULL);
- return tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL;
+ return ClockService::clock_type(tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL);
}