charcoal-client 0.1.1

Client library for Hearth: A LavaLink alternative with 30X Higher performance
Documentation
1
2
3
4
5
6
7
8
use std::time::{Duration, SystemTime, UNIX_EPOCH};

pub fn get_unix_timestamp() -> Duration {
    let start = SystemTime::now();
    start
        .duration_since(UNIX_EPOCH)
        .expect("Time went backwards")
}