Skip to content

Whats-A-MattR/ntptest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ntptest

A simple cross-platform CLI tool for NTP testing.

📦 Installation

Prebuilt binaries are available for Linux, macOS, and Windows under the Releases tab.

🖥️ Download and Install

Linux/macOS

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

Windows

  1. Download ntptest-windows-amd64.exe from the Releases page.
  2. (Optional) Rename it to ntptest.exe
  3. Move it to a folder like C:\ntptest\
  4. Add that folder to your system Path:
    • Control Panel → System → Advanced → Environment Variables → System Variables → Path

Now you can run ntptest from any terminal window.


🚀 Usage

ntptest --help

Test against a specific NTP server

ntptest -server time.google.com

🛠 Building from Source

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

📄 License

MIT

About

Basic NTP Tester Written in Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published