pub fn system_time_to_nanos(d: &SystemTime) -> u64