if (idx >= MAX_INFOS)
error(1, 0, "%s idx too high", __FUNCTION__);
} else {
if (idx >= MAX_INFOS)
error(1, 0, "%s idx too high", __FUNCTION__);
} else {
error(1, 0, "%s error", __FUNCTION__);
}
return &msg_infos[idx];
error(1, 0, "%s error", __FUNCTION__);
}
return &msg_infos[idx];
receive(s, &frame, &ts_kern, &ts_user);
mi = frame2info(&frame);
mi->ts_rx_final_kern = ts_kern;
receive(s, &frame, &ts_kern, &ts_user);
mi = frame2info(&frame);
mi->ts_rx_final_kern = ts_kern;
pthread_create(&thread, 0, measure_thread, NULL);
struct timespec next, now, diff;
pthread_create(&thread, 0, measure_thread, NULL);
struct timespec next, now, diff;
clock_gettime(CLOCK_MONOTONIC, &now);
if (timespec_subtract(&diff, &next, &now)) {
clock_gettime(CLOCK_MONOTONIC, &now);
if (timespec_subtract(&diff, &next, &now)) {