xfer_to_nic_time=g_tw_lookahead+codes_local_latency(sender);/* Throws an error of found last KP time > current event time otherwise when LPs of one type are placed together*/
xfer_to_nic_time=codes_local_latency(sender);/* Throws an error of found last KP time > current event time otherwise when LPs of one type are placed together*/
//printf("\n transfer in time %f %f ", xfer_to_nic_time+offset, tw_now(sender));