A simple cross-platform CLI tool for NTP testing.
Prebuilt binaries are available for Linux, macOS, and Windows under the Releases tab.
curl -LO https://github.com/Whats-A-MattR/ntptest/releases/latest/download/ntptest-linux-amd64
chmod +x ntptest-linux-amd64
sudo mv ntptest-linux-amd64 /usr/local/bin/ntptest
- Download
ntptest-windows-amd64.exe
from the Releases page. - (Optional) Rename it to
ntptest.exe
- Move it to a folder like
C:\ntptest\
- Add that folder to your system
Path
:- Control Panel → System → Advanced → Environment Variables → System Variables →
Path
- Control Panel → System → Advanced → Environment Variables → System Variables →
Now you can run ntptest
from any terminal window.
ntptest --help
ntptest -server time.google.com
If you have Go installed:
git clone https://github.com/Whats-A-MattR/ntptest.git
cd ntptest
go build -o ntptest main.go
OR, use make
:
git clone https://github.com/Whats-A-MattR/ntptest.git
cd ntptest
make local
# or to build for all platforms
make all
# or to build for a specific platform
make linux # for Linux
make windows # for Windows
make darwin # for macOS
MIT