pub fn duration_now() -> Option<Duration> {
	use std::time::SystemTime;

	let now = SystemTime::now();
	now.duration_since(SystemTime::UNIX_EPOCH).map_err(|e| {
		warn!("Current time {:?} is before unix epoch. Something is wrong: {:?}", now, e);
	}).ok()
}
/// Returns current duration since unix epoch.
Returns current duration since unix epoch.
Returns current duration since unix epoch .
pub fn duration_now() -> Option<Duration> {
	use std::time::SystemTime;
	let now = SystemTime::now();
	now.duration_since(SystemTime::UNIX_EPOCH).map_err(|e| {
		warn!("Current time {:?} is before unix epoch. Something is wrong: {:?}", now, e);
	}).ok()
}
pub fn duration_now ( ) -> Option < Duration > { use std :: time :: SystemTime ; let now = SystemTime :: now ( ) ; now . duration_since ( SystemTime :: UNIX_EPOCH ) . map_err ( | e | { warn ! ( " " now e ) ; } ) . ok ( ) }
Returns current duration since unix epoch.
Returns current duration since unix epoch .