Skip to content

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

@bobwen-dev

Description

@bobwen-dev

image

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

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

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

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

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions