Crates.io | clock-check |
lib.rs | clock-check |
version | 0.4.0 |
source | src |
created_at | 2023-02-26 18:13:16.374911 |
updated_at | 2024-02-24 22:18:58.043306 |
description | A tool for getting your system clock precision |
homepage | https://github.com/filiptronicek/time-server-rust |
repository | https://github.com/filiptronicek/time-server-rust |
max_upload_size | |
id | 795397 |
size | 65,542 |
This is a simple command-line interface to the time server.
Warning: This is a work in progress.
cargo install clock-check
Usage: clock-check [OPTIONS]
Options:
-s, --server <SERVER> The URL of the time server [default: http://localhost: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