1// helper method 2#[inline] 3pub fn unix_timestamp() -> u64 { 4 use std; 5 std::time::SystemTime::now() 6 .duration_since(std::time::UNIX_EPOCH) 7 .expect("Time went backwards!") 8 .as_secs() 9}