RKIK (Rusty Klock Inspection Kit) is a Rust CLI and library to probe NTP servers, compare their offsets, and export results in text or JSON.
Version 1.0.0 ships a clean library API, continuous modes, a compact JSON format, and host[:port]
targets (including [IPv6]:port
).
query_one(&str, bool, Duration) -> Result<ProbeResult, RkikError>
and
compare_many(&[String], bool, Duration) -> Result<Vec<ProbeResult>, RkikError>
.text
, json
, simple
(short text), json-short
(compact).--count
, --infinite
, --interval
(JSON Lines recommended).-6
forces AAAA resolution.--no-color
(alias --nocolor
).pool.ntp.org:123
, [2a00:1450::200e]:123
.rkik-git
— https://aur.archlinux.org/packages/rkik-git
git clone https://aur.archlinux.org/rkik-git.git
cd rkik-git && makepkg -si
With a helper:
yay -S rkik-git
rkik
(channel dependent). Search:
https://search.nixos.org/packages?query=rkik
# ephemeral shell
nix shell nixpkgs#rkik
# user profile install
nix-env -iA nixpkgs.rkik
cargo build --release
rkik --server time.google.com --json
rkik --compare time.cloudflare.com,time.google.com --format json
rkik 0.fr.pool.ntp.org --format json-short
rkik -6 --server 2.pool.ntp.org -j
rkik --server time.cloudflare.com --count 2 --interval 1 --short