Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sync computer clock with atomic clock
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01001478
Message ID:
01001700
Vues:
16
>Could someone point me in the direction I need to look for code samples to sync the computer clock with the atomic clock?
>Any comments or concerns from people who use this would be great.

I generally let the Windows Time Service take care of this: http://www.microsoft.com/windowsxp/home/using/productdoc/en/default.asp?url=/windowsxp/home/using/productdoc/en/net_time.asp

I use the NET TIME command with the /setsntp option. If you want to sync with the US Naval Observatory you can do something like
NET TIME /setsntp:tick.usno.navy.mil tock.usno.navy.mil
or
NET TIME /setsntp:ntp1.usno.navy.mil ntp2.usno.navy.mil
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform