13 lines
263 B
Rust
13 lines
263 B
Rust
use std::time::{SystemTime, UNIX_EPOCH};
|
|
|
|
pub trait Fact: Send + Sync {
|
|
fn gather(&self) -> String;
|
|
|
|
fn get_epoch_ms(&self) -> u128 {
|
|
SystemTime::now()
|
|
.duration_since(UNIX_EPOCH)
|
|
.unwrap()
|
|
.as_millis()
|
|
}
|
|
}
|