git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1704
270642c3-0616-0410-b53a-bc976706d245
return ClockService::from_timeval(tv);
}
+prefix_ senf::ClockService::clock_type senf::DatagramSocketProtocol::timestamp_system()
+ const
+{
+ struct timeval tv;
+ if (::ioctl(fd(), SIOCGSTAMP, &tv) < 0)
+ SENF_THROW_SYSTEM_EXCEPTION("");
+ return tv.tv_sec * 1000000000LL + tv.tv_usec * 1000;
+}
+
+
///////////////////////////////cc.e////////////////////////////////////////
#undef prefix_
//#include "DatagramSocketProtocol.mpp"
: public virtual SocketProtocol
{
public:
+ ClockService::clock_type timestamp_system() const; ///< Return packet timestamp of last packet
+
ClockService::clock_type timestamp() const; ///< Return packet timestamp of last packet
/**< The returned timestamp represents the time, at which
the last network packet passed to the user has been