Configure Windows time with high (sub seconds) precision

前端 未结 5 2167
执念已碎
执念已碎 2021-01-07 05:51

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 inte

相关标签:
5条回答
  • 2021-01-07 06:04

    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.

    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.

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

    w32tm /stripchart /computer: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
    

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

    0 讨论(0)
  • 2021-01-07 06:07

    Just enter the command time if you want the system time.
    Like from the command line.

    I am just having trouble believing synch immediately followed by time is wrong.

    0 讨论(0)
  • 2021-01-07 06:20

    Standard Windows time service doesn't guarantee precision better than in order of seconds (see http://support.microsoft.com/kb/939322). So third party time synchronization service needs to be used for sub-second precision. List of available providers is maintained by NIST here: http://www.nist.gov/pml/div688/grp40/softwarelist.cfm.

    I personally finally chose http://www.timesynctool.com/ (as it is free, reliable and mostly open source - so I can be sure what exactly it's doing)

    0 讨论(0)
  • 2021-01-07 06:25
        net stop w32time
        w32tm /config /syncfromflags:manual /manualpeerlist:"0.it.pool.ntp.org 1.it.pool.ntp.org 2.it.pool.ntp.org 3.it.pool.ntp.org"
        net start w32time
        w32tm /config /update
        w32tm /resync /rediscover
    

    .BAT Sample File :https://gist.github.com/thedom85/dbeb58627adfb3d5c3af

    I also recommend this program :http://www.timesynctool.com/

    0 讨论(0)
  • 2021-01-07 06:25

    Windows Server 2016 has made improvements to time accuracy. 1ms accuracy can be achieved in your domain under the right conditions. See https://aka.ms/WS2016Time for more information.

    0 讨论(0)
提交回复
热议问题