Lines Matching refs:time
20 #include <sys/time.h>
23 #include <time.h>
122 " -e val read 'val' external time stamp events\n"
124 " -g get the ptp clock time\n"
127 " -k val measure the time offset between system and phc clock\n"
134 " 1 - external time stamp\n"
140 " -s set the ptp clock time from the system time\n"
141 " -S set the system time from the ptp clock time\n"
142 " -t val shift the ptp clock time by 'val' seconds\n"
143 " -T val set the ptp clock time to 'val' seconds\n"
144 " -z test combinations of rising/falling external time stamp flags\n",
280 " %d external time stamp channels\n"
311 tx.time.tv_sec = adjtime;
312 tx.time.tv_usec = 0;
316 puts("time shift okay");
324 printf("clock time: %ld.%09ld or %s",
334 puts("set time okay");
343 puts("set time okay");
353 puts("set time okay");
365 puts("external time stamp request okay");
464 puts("pps for system time request okay");
485 puts("system and phc clock time offset request okay");
495 printf("system time: %lld.%09u\n",
497 printf("phc time: %lld.%09u\n",
499 printf("system time: %lld.%09u\n",
501 printf("system/phc clock time offset is %" PRId64 " ns\n"
502 "system clock time delay is %" PRId64 " ns\n",