nado-sdk 0.3.6

Official Rust SDK for the Nado Protocol API
Documentation
1
2
3
4
5
6
7
8
use std::time::{SystemTime, UNIX_EPOCH};

pub fn timestamp() -> u64 {
    SystemTime::now()
        .duration_since(UNIX_EPOCH)
        .unwrap()
        .as_secs()
}