#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
+#include <senf/Utils/ClockTypeMacros.hh>
//#include "DatagramSocketProtocol.mpp"
#define prefix_
// 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 SENF_INT2CLOCKTYPE(tv.tv_sec * 1000000000LL + tv.tv_usec * 1000LL);
}