以高(秒秒)精度配置Windows时间 [英] Configure Windows time with high (sub seconds) precision

查看:141
本文介绍了以高(秒秒)精度配置Windows时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

http://time.is/ 不断报告我的系统时钟几秒钟(通常在前面)即使我刚刚强制Windows时钟与一些互联网时间服务器的同步(例如time.windows.com或time.nist.gov)。
这是与远程服务器集成的组件的开发复杂化,如果我的时间戳超过秒,则断开我的连接。我们的生产HW具有微秒精度的专业硬件时钟提供商。我在开发环境中不需要任何类似的东西,但是精度要比第二级要差。
是否有任何公共时间服务器或可靠的时间同步实用程序可以实现?

http://time.is/ is constantly reporting my system clock as several seconds off (usually ahead) even if I freshly force synchronization of windows clock with some of the internet time servers (e.g. time.windows.com or time.nist.gov). This is complicating development of components integrating with remote servers that disconnects me if my timestamps are over second off. Our production HW have specialized HW clock provider with microsecond precision. I do not need anything like that in dev environment, but precision not worse than second is needed. Is there any public time server or reliable time synchronization utility that can achieve this?

EDIT1:
我发现并回答不同的问题,实际上也回答了我的问题。 https://serverfault.com/a/489016 。其中它提到:

  • Microsoft does not guarantee sub-second accuracies using Windows Time (MS mentiones it here http://support.microsoft.com/kb/939322)
  • NIST maintains list of third party time software producers here
    http://www.nist.gov/pml/div688/grp40/softwarelist.cfm

结论:for更好的精度比1或2秒的顺序你需要使用第三方时间同步服务。

Conclusion: for better precision than in order of 1 or two seconds you need to use third party time synchronization service.

推荐答案

如果你的机器是一部分的活动目录env,那么它的时钟将自动同步到AD控制器的时钟(这可能与其他时间源同步)。所以你应该寻求修复AD控制器上的时间问题。

If your machine is part of an Active Directory env, then its clock is automatically sync'd to the clock of your AD controller (which is likely sync'd to some other time source). So you should look to fix the time problem on the AD controller.

如果您在此页面上滚动2/3的方式: http://www.cites.illinois.edu/network/activedirectory.html 它会告诉你你的机器在AD域中。

If you scroll 2/3 of the way down on this page: http://www.cites.illinois.edu/network/activedirectory.html it will tell you if your machine is in an AD domain.

如果您的计算机不在AD中,则可以运行

If your machine is not in an AD, you can run

w32tm /stripchart /computer:time.windows.com

远离同步您的机器是与时间源(替代time.windows.com与您的时间来源)。

to tell how far out of sync your machine is with a time source (substitute time.windows.com with your time source).

如果要立即重新同步到时间源,运行:

If you want to resync to the time source immediately, run:

w32tm /config /syncfromflags:manual /manualpeerlist:time.windows.com    
w32tm /config /update 
w32tm /resync

而您可以重新运行w32tm / stripchart / computer: time.windows.com看看它是否真的有效。

and ofcourse you can re-run "w32tm /stripchart /computer:time.windows.com" to see if it really worked.

这篇关于以高(秒秒)精度配置Windows时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆