I am running the following code:
Code: Select all
ptp_get_time_info(ptp_server, ptp_time_information);
printf("PTP Time: %u %u.%u Local Time: %u \n", ptp_time_information.ptp_ts.seconds[1], ptp_time_information.ptp_ts.seconds[0], ptp_time_information.ptp_ts.nanoseconds, ptp_time_information.local_ts);
ptp_get_time_info_mod64(ptp_server, ptp_time_information_mod64);
printf("PTP Time: %u %u Local Time: %u \n", ptp_time_information_mod64.ptp_ts_hi, ptp_time_information_mod64.ptp_ts_lo, ptp_time_information_mod64.local_ts);
ptp_get_time_info(ptp_server, ptp_time_information);
printf("PTP Time: %u %u.%u Local Time: %u \n", ptp_time_information.ptp_ts.seconds[1], ptp_time_information.ptp_ts.seconds[0], ptp_time_information.ptp_ts.nanoseconds, ptp_time_information.local_ts);
ptp_get_time_info_mod64(ptp_server, ptp_time_information_mod64);
printf("PTP Time: %u %u Local Time: %u \n", ptp_time_information_mod64.ptp_ts_hi, ptp_time_information_mod64.ptp_ts_lo, ptp_time_information_mod64.local_ts);
It seems to me that the both the ptp time and the local time should be increasing not remaining the same or decreasing.PTP Time: 0 1436858884.793158864 Local Time: 1342369710
PTP Time: 334544778 4235578576 Local Time: 1342369650
PTP Time: 0 1436858884.793158864 Local Time: 1342369709
PTP Time: 334544778 4235578576 Local Time: 1342369650
Can someone at xmos explain this please.