1 stable release

2.0.0 Mar 22, 2021
1.0.1 Mar 22, 2021

#14 in #ntp

Download history 26/week @ 2024-01-07 29/week @ 2024-01-14 24/week @ 2024-01-21 47/week @ 2024-01-28 55/week @ 2024-02-04 60/week @ 2024-02-11 68/week @ 2024-02-18 72/week @ 2024-02-25 62/week @ 2024-03-03 71/week @ 2024-03-10 69/week @ 2024-03-17 58/week @ 2024-03-24 104/week @ 2024-03-31 34/week @ 2024-04-07 50/week @ 2024-04-14 39/week @ 2024-04-21

229 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–19MB
~218K SLoC