Download source files - 12 Kb
Download demo project - 5 Kb
Though not obvious, time synchronization is sometimes important. The best example is the Kerberos authentication protocol, which requires the resources to be synchronized within minutes or even seconds, but there are other situations as well. The Network Time Protocol (NTP) and its simplified form (SNTP) are widely used to synchronize network resources, due to their simplicity and effectiveness. There are many programs available that synchronize your PC's clock with that of a time server. Dimension 4 is my favorite.
In case you need time synchronization embedded into your software, here is the C# alternative. It's simple, fast and integrates seamlessly with the .NET platform. There is a Java implementation of a NTP client by Michel Van den Bergh, but I don't have the URL anymore. Maybe Michel reads this and will send me a note.
There are several time severs on the Internet and the list below contains those operated by NIST. If you need more, use a search engine.
|time-a.nist.gov||18.104.22.168||NIST, Gaithersburg, Maryland|
|time-b.nist.gov||22.214.171.124||NIST, Gaithersburg, Maryland|
|time-a.timefreq.bldrdoc.gov||126.96.36.199||NIST, Boulder, Colorado|
|time-b.timefreq.bldrdoc.gov||188.8.131.52||NIST, Boulder, Colorado|
|time-c.timefreq.bldrdoc.gov||184.108.40.206||NIST, Boulder, Colorado|
|utcnist.colorado.edu||220.127.116.11||University of Colorado, Boulder|
|time.nist.gov||18.104.22.168||NCAR, Boulder, Colorado|
|time-nw.nist.gov||22.214.171.124||Microsoft, Redmond, Washington|
|nist1.datum.com||126.96.36.199||Datum, San Jose, California|
|nist1.nyc.certifiedtime.com||188.8.131.52||Abovnet, New York City|
|nist1.sjc.certifiedtime.com||184.108.40.206||Abovnet, San Jose, California|