#[cfg(feature = "socket")]
#[allow(dead_code)]
pub mod io;
pub mod prost_helpers;
pub mod system_killer;
use std::time::{SystemTime, UNIX_EPOCH};
#[inline]
pub fn get_system_time() -> u64 {
let start = SystemTime::now();
let since_the_epoch = start
.duration_since(UNIX_EPOCH)
.expect("Time went backwards");
since_the_epoch.as_millis() as u64
}
#[cfg(feature = "metrics")]
#[inline]
pub fn get_system_time_nano() -> u64 {
let start = SystemTime::now();
let since_the_epoch = start
.duration_since(UNIX_EPOCH)
.expect("Time went backwards");
since_the_epoch.as_nanos() as u64
}
pub trait ArconFnBounds: Send + Sync + Clone + 'static {}
impl<T> ArconFnBounds for T where T: Send + Sync + Clone + 'static {}