> it.it_interval.tv_nsec = 0;
532c536
< it.it_value.tv_usec = 0;
- - -
> it.it_value.tv_nsec = 0;
623,624c627,628
< struct timeval *recv_timep = NULL;
< struct timeval recv_time;
- - -
> struct timespec *recv_timep = NULL;
> struct timespec recv_time;
657c661
< if (c->cmsg_len < CMSG_LEN(sizeof(struct timeval)))
- - -
> if (c->cmsg_len < CMSG_LEN(sizeof(struct timespec)))
659c663
< recv_timep = (struct timeval*)CMSG_DATA(c);
- - -
> recv_timep = (struct timespec*)CMSG_DATA(c);
666c670,671
< gettimeofday(&recv_time, NULL);
- - -
> // gettimeofday(&recv_time, NULL);
> clock_gettime( CLOCK_REALTIME, &recv_time);
692c697
< int csfailed, struct timeval *tv, char *from,
- - -
> int csfailed, struct timespec *tv, char *from,
703,704c708,709
< if (timing && cc >= 8+sizeof(struct timeval)) {
< struct timeval tmp_tv;
- - -
> if (timing && cc >= 8+sizeof(struct timespec)) {
> struct timespec tmp_tv;
709c714
< triptime = tv->tv_sec * 1000000 + tv->tv_usec;
- - -
> triptime = tv->tv_sec * 1000000000 + tv->tv_nsec;
714c719,720
< gettimeofday(tv, NULL);
- - -
> // gettimeofday(tv, NULL);
> clock_gettime( CLOCK_REALTIME, tv);
50 ISSN 0236-3933. Вестник МГТУ им. Н.Э. Баумана. Сер. “Приборостроение”. 2012. № 4