PTP Time Synchronization - ashBabu/Utilities GitHub Wiki
How to set up PTP on Linux (Quickstart)
Install the tools:
sudo apt install linuxptp
Identify your interface: (e.g., eth0 or enp3s0).
Run ptp4l: This synchronizes your Network Card's hardware clock to the Leader.
sudo ptp4l -i enp3s0 -m -S
Run phc2sys: This synchronizes your System Clock (the one ROS uses) to your Network Card Clock.
sudo phc2sys -s enp3s0 -w -m