simperby_core/
utils.rs

1use crate::Timestamp;
2
3/// Generates a timestamp in the same as the node does.
4pub fn get_timestamp() -> Timestamp {
5    std::time::SystemTime::now()
6        .duration_since(std::time::UNIX_EPOCH)
7        .unwrap()
8        .as_millis() as Timestamp
9}