I have to write an cpp application to find:
1.) if i am able to synchronize with central clock then find the deviation between system clock and NTP server clock with the help of ntpd which is up and running on linux system using following configuration:
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict -6 ::1
server ntp iburst minpoll 4
driftfile /var/lib/ntp/drift
logconfig =syncall +peerevents +sysevents +clockall
How can I achieve that ?
3