use std::time::{SystemTime, UNIX_EPOCH};
pub async fn sleep(ms: u64) {
tokio::time::sleep(tokio::time::Duration::from_millis(ms)).await;
}
pub fn timestamp() -> u64 {
match SystemTime::now().duration_since(UNIX_EPOCH) {
Ok(d) => d.as_secs(),
Err(_) => 0,
}
}