Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sync computer clock with atomic clock
Message
From
05/04/2005 17:24:59
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01001478
Message ID:
01001700
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform