AcheronSR/gameserver/src/util.rs
2024-03-29 09:46:31 +03:00

8 lines
183 B
Rust

use std::time::{SystemTime, UNIX_EPOCH};
pub fn cur_timestamp_ms() -> u64 {
SystemTime::now()
.duration_since(UNIX_EPOCH)
.unwrap()
.as_millis() as u64
}