[−][src]Crate sntpc
Rust SNTP client
This crate provides a method for sending requests to NTP servers and process responses, extracting received timestamp
Example
use sntpc; let result = sntpc::request("pool.ntp.org", 123); if let Ok(timestamp) = result { println!("NTP server time: {}", timestamp); }
Functions
request | Send request to a NTP server with the given address and process the response |