8 个版本
0.4.0 | 2024年2月24日 |
---|---|
0.3.0 | 2023年3月5日 |
0.2.0 | 2023年2月28日 |
0.1.2 | 2023年2月28日 |
#653 在 命令行实用工具
91 每月下载量
21KB
227 代码行
时间服务器 CLI
这是对时间服务器的简单命令行界面。
警告:这是一个正在进行中的项目。
安装
cargo install clock-check
用法
Usage: clock-check [OPTIONS]
Options:
-s, --server <SERVER> The URL of the time server [default: https://127.0.0.1:8000/time]
-b, --bare Only output the server unix server time
--seconds Use seconds instead of milliseconds
-t, --timeout <TIMEOUT> A timeout in milliseconds [default: 1000]
-l, --latency-in-account Try to account for network latency. This is not very accurate and should be considered experimental
-u, --use-ntp Use NTP to get the time instead of a time server (experimental). This will use time.cloudflare.com:123 by default, but you can specify a different server with the --server flag
-h, --help Print help
-V, --version Print version
依赖项
~18–52MB
~1M SLoC