I’m making a C++ software that needs to syncronize system clock with remote NTP server.
For now, I’m ussing “system” command to call the console “ntpdate” command.
..But I think is an ugly way to do that.
Do you know any library that let me connect to remote NTP server?
Thanks.
Would it not be a better solution to just have ntpd running on said system to ensure clock being correct instead of having your software manually issuing a sync and possibly causing issues with other applications not enjoying sudden time jumps, especially backwards.
That being said there is libntp I believe.
I’ll drop in more things as Google finds them for me.