我一次在 4 台机器上工作。这是一个实时环境,所以我必须将时间同步到毫秒,有没有办法以毫秒精度同步系统时钟?
目前,我正在借助批处理脚本命令 NET TIME\\TIMESRV/SET/YES
同步机器,但我不确定它是否能同步机器时间到毫秒。还有其他方法可以做到这一点吗?
最佳答案
微软不保证这样的精度:
We do not guarantee and we do not support the accuracy of the W32Time service between nodes on a network. The W32Time service is not a full-featured NTP solution that meets time-sensitive application needs.
The W32Time service is primarily designed to do the following:
- Make the Kerberos version 5 authentication protocol work.
- Provide loose sync time for client computers.
The W32Time service cannot reliably maintain sync time to the range of 1 to 2 seconds. Such tolerances are outside the design specification of the W32Time service.
关于datetime - 如何同步机器时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10480407/