printf(" Average number of hops traversed %f average message latency %lf us maximum message latency %lf us \n",(float)avg_hops/total_finished_packets,avg_time/(total_finished_packets*1000),max_time/1000);
xfer_to_nic_time=0.01+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=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*/