Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[工具自荐] htpdate - 使用多个网站作为时间源来同步系统时间 #2046

Open
bobwen-dev opened this issue Nov 5, 2021 · 1 comment

Comments

@bobwen-dev
Copy link

image

这个工具向不同网站发出请求, 根据服务器返回的一组时间算出中位数,并将其用作时间同步.

由于站点响应的时间值精度为第二,因此 htpdate 的精度只能在几次请求的情况下实现 0.2s 精度,但如果加到几十次请求,通过中位数计算,精度可以降低到 0.1s

由于网站数量比 ntp 服务器大得多,因此 htpdate 方法更可靠,可以作为 ntp 的备份。

一些类似的项目,维护差,如不支持 https 协议 / 不支持代理 / 或没有合理计算数字。我认为这个 htpdate 是迄今为止最好的。

本以为这个工具没有使用,但更新后有一个严重的缺陷,收到了很多反馈电子邮件,才知道真正的用户不会注册 github。

我仍然希望会有程序员也来看看这个工具,它真的很有用,有用。

地址: https://github.com/bobwen-dev/htpdate/

@rikonaka
Copy link

雪中送炭啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants