Commit cbc7221e authored by Joanne Hugé's avatar Joanne Hugé

Use CLOCK_REALTIME for userspace timestamping

parent cd5baf60
...@@ -162,7 +162,7 @@ struct packet_timestamps send_udp_packet(int use_etf, int use_timestamps, ...@@ -162,7 +162,7 @@ struct packet_timestamps send_udp_packet(int use_etf, int use_timestamps,
struct timespec ts; struct timespec ts;
if (use_timestamps) { if (use_timestamps) {
clock_gettime(CLOCK_MONOTONIC, &ts); clock_gettime(CLOCK_REALTIME, &ts);
packet_ts.user_enter_send = ts_to_uint(ts); packet_ts.user_enter_send = ts_to_uint(ts);
} }
...@@ -194,7 +194,7 @@ struct packet_timestamps send_udp_packet(int use_etf, int use_timestamps, ...@@ -194,7 +194,7 @@ struct packet_timestamps send_udp_packet(int use_etf, int use_timestamps,
} }
if (use_timestamps) { if (use_timestamps) {
clock_gettime(CLOCK_MONOTONIC, &ts); clock_gettime(CLOCK_REALTIME, &ts);
packet_ts.user_call_sendmsg = ts_to_uint(ts); packet_ts.user_call_sendmsg = ts_to_uint(ts);
} }
......
Markdown is supported
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