nippy

Crates.ionippy
lib.rsnippy
version2.0.0
sourcesrc
created_at2021-03-22 03:50:39.020479
updated_at2021-03-22 05:05:47.124949
descriptionAsync NTP - async fork of ntp
homepage
repositoryhttps://github.com/apibillme/nippy
max_upload_size
id371945
size46,638
Bevan Hunt (bevanhunt)

documentation

README

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.

Commit count: 4

cargo fmt