1 stable release

2.0.0 Mar 22, 2021
1.0.1 Mar 22, 2021

#14 in #ntp

Download history 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 105/week @ 2024-04-01 34/week @ 2024-04-08 50/week @ 2024-04-15 36/week @ 2024-04-22 31/week @ 2024-04-29 55/week @ 2024-05-06 42/week @ 2024-05-13 38/week @ 2024-05-20 35/week @ 2024-05-27

170 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–15MB
~195K SLoC