1 stable release
2.0.0 | Mar 22, 2021 |
---|---|
1.0.1 |
|
#21 in #ntp
101 downloads per month
Used in 5 crates
41KB
568 lines
Nippy
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