Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nouemankhal/go-ntp-client

Go solution for the Build Your Own NTP Client Coding Challenge by John Crickett
https://github.com/nouemankhal/go-ntp-client

client go network ntp udp

Last synced: 1 day ago
JSON representation

Go solution for the Build Your Own NTP Client Coding Challenge by John Crickett

Awesome Lists containing this project

README

        

# Coding Challenge: Build Your Own NTP Client

This is my solution to the coding challenge [John Crickett's Coding Challenges](https://codingchallenges.fyi/challenges/challenge-ntp).

## Setup

1. Clone the repo
1. Run the tool using of the following approaches:

```shell
# Run the tool automatically using the go command
$ go run .

# Build a binary and run it manually
$ go build -o gontpc
$ ./gontpc
```
1. Done!

## Examples

```shell
$ go run . pool.ntp.org
t1 = 3922693541.211305000
t2 = 3922693541.562651112
t3 = 3922693541.564223255
t4 = 3922693541.488325000
delay = + 0.06413270183838904
offset = + 0.04973779048305005
```