blob: c20ce8ea70a9e753b7123bb16ff4b421575e1b12 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
use std::time::{SystemTime, UNIX_EPOCH};
pub mod protocol;
pub mod sql;
pub mod dbctx;
pub fn now_ms() -> u64 {
SystemTime::now()
.duration_since(UNIX_EPOCH)
.expect("now is later than epoch")
.as_millis() as u64
}
|