Crates.io | nippy |
lib.rs | nippy |
version | 2.0.0 |
source | src |
created_at | 2021-03-22 03:50:39.020479 |
updated_at | 2021-03-22 05:05:47.124949 |
description | Async NTP - async fork of ntp |
homepage | |
repository | https://github.com/apibillme/nippy |
max_upload_size | |
id | 371945 |
size | 46,638 |
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
.
nippy = "2"
nippy = { version="2", default-features=false, features=["tokio-runtime"] }
nippy::get_unix_ntp_time().await.unwrap();
This will return an i64
that is the unix ntp timestamp from pool ntp server
.