1 stable release

2.0.0 Mar 22, 2021
1.0.1 Mar 22, 2021

#11 in #ntp

Download history 42/week @ 2023-12-11 5/week @ 2023-12-18 29/week @ 2024-01-08 28/week @ 2024-01-15 22/week @ 2024-01-22 48/week @ 2024-01-29 54/week @ 2024-02-05 64/week @ 2024-02-12 67/week @ 2024-02-19 72/week @ 2024-02-26 65/week @ 2024-03-04 66/week @ 2024-03-11 71/week @ 2024-03-18 59/week @ 2024-03-25

264 downloads per month
Used in 5 crates

MIT license

41KB
568 lines

Nippy   Build Status Latest Version Docs

Purpose

The purpose of this library is to be your async ntp utility.

This is a fork of the crate ntp that adds support for async-std, tokio, and Rust 2018.

Install

async-std


nippy = "2"

Tokio


nippy = { version="2", default-features=false, features=["tokio-runtime"] }

Use


nippy::get_unix_ntp_time().await.unwrap();

This will return an i64 that is the unix ntp timestamp from pool ntp server.

Dependencies

~5–17MB
~213K SLoC