Solution
On
TSN enabled targets with timing and synchronization services installed,
setting the system time can cause a discrepancy between the system time and the hardware clock. The Timing & Synchronization Services will detect this discrepancy and correct for it, causing the observed drift. Restarting the target will set all the clocks to the system time. This will significantly reduce drift in the short term but will not prevent future drift. To prevent the time drift from occurring in the long-term, avoid installing packages and software which include the Timing & Synchronization Services.
On Linux targets which do not have the Timing & Synchronization Services installed, an
NTP Daemon can be implemented to synchronize the system time to an external NTP Server.