Commit 6c388547 authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files


parent dd8f32a9
Pipeline #1923 failed with stages
in 1 minute
......@@ -241,7 +241,7 @@ void receive_from_socket(PrrtSocket *socket_ptr, unsigned char buffer_ptr[65528]
} else {
*received_size = recvfrom(socket_ptr->dataSocketFd, buffer_ptr, MAX_PAYLOAD_LENGTH, 0,
(struct sockaddr *) remote_ptr, remote_len_ptr);
clock_gettime(CLOCK_REALTIME, packet_timestamp_ptr);
clock_gettime(CLOCK_MONOTONIC, packet_timestamp_ptr);
*packet_cyclestamp_ptr = __builtin_ia32_rdtsc();
......@@ -60,7 +60,7 @@ bool send_to_socket(PrrtSocket* sock_ptr, PrrtReceiver *recv, uint8_t* buf, prrt
// TODO: [LATENCY] By knowing the time encoding etc. that happens upfront, one could make an adjustment here.
check(sendto(sock_ptr->dataSocketFd, buf, length, 0, recv->ai->ai_addr, recv->ai->ai_addrlen) ==
length, "Sendto failed.");
clock_gettime(CLOCK_REALTIME, packet_timestamp);
clock_gettime(CLOCK_MONOTONIC, packet_timestamp);
*packet_clockstamp = __builtin_ia32_rdtsc();
debug(DEBUG_HARDSTAMPING, "Software TS:\t%ld.%09ld", (long) packet_timestamp->tv_sec, (long) packet_timestamp->tv_nsec);
Subproject commit 00d0d00faaaa7b5a97d3db4de64a59be3d9bee5e
Subproject commit 116a01bd708b76d11124f6dd773d56bbecb93ebf
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment