An NTP client helps keep your local machine / server’s time in sync with other machines and perhaps authoratitive clocks.

Build your own NTP Client is available with a project breakdown on Coding Challenges.