al,
Thank you for your reply and the link. I guess the title and the post was kind of missleading, I was not really interested in making sure the computer clock was correct, but rather geting the correct time from a server (like the Navy). That way I can use the Navy's time instead of the local computer time, and the link addressed that.
Again thank you very much.
Sincerely,
Einar
>>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
Semper ubi sub ubi.