sntp_request
sntp_request Tiny Rust library to request timestamp from NTP servers trough SNTP protocol.
Example
The example below shows how to obtain precise timestamp from main NTP server:
extern crate chrono;
extern crate sntp_request;
use ;
use SntpRequest;
Usage
Add this to your Cargo.toml:
[dependencies]
sntp_request = "1.1.1"
and this to your crate root:
extern crate sntp_request;
Contributions
Pull Requests and Issues are welcome!
License
sntp_request is licensed under either of the following, at your option:
- Apache License 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)