1 stable release

2.0.0 Mar 22, 2021
1.0.1 Mar 22, 2021

#21 in #ntp

Download history 31/week @ 2024-07-20 46/week @ 2024-07-27 39/week @ 2024-08-03 29/week @ 2024-08-10 35/week @ 2024-08-17 30/week @ 2024-08-24 26/week @ 2024-08-31 28/week @ 2024-09-07 24/week @ 2024-09-14 44/week @ 2024-09-21 25/week @ 2024-09-28 5/week @ 2024-10-05 22/week @ 2024-10-12 22/week @ 2024-10-19 20/week @ 2024-10-26 36/week @ 2024-11-02

101 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

~4–14MB
~192K SLoC