Chrony is a Network Time Protocol's implementation that is more faster and robust than traditional NTPD. It have the ability to synchronize systems with more accuracy and reliability. To install it on RPM based systems use
yum -y install chrony
on Debain based systems use
apt install chrony
once installed, start and persist the service.
systemctl start chronyd
systemctl enable chronyd # persist across reboots
To check if Chrony is sync time
[root@tutorialjinni ~]# chronyc tracking
Reference ID : CFC5577C (time.cloudflare.com)
Stratum : 4
Ref time (UTC) : Thu Dec 01 13:57:19 2022
System time : 0.000113938 seconds fast of NTP time
Last offset : -0.000048865 seconds
RMS offset : 0.000496117 seconds
Frequency : 2.245 ppm slow
Residual freq : -0.000 ppm
Skew : 0.098 ppm
Root delay : 0.118462570 seconds
Root dispersion : 0.001595144 seconds
Update interval : 64.4 seconds
Leap status : Normal
also verify Chrony working and enable via timedatectl
[root@tutorialjinni ~]# timedatectl
Local time: Thu 2022-12-01 14:01:08 UTC
Universal time: Thu 2022-12-01 14:01:08 UTC
RTC time: Thu 2022-12-01 14:01:08
Time zone: UTC (UTC, +0000)
System clock synchronized: yesNTP service: active
RTC in local TZ: no
[root@tutorialjinni ~]#