#NEWLINE# def print_results( send_type , start_timestamp , recv_timestamp , finish_timestamp ) : #NEWLINE# #INDENT# msg = 'type: {0}\t receive: {1:5.5f}, add:{2:5.5f}, total: {3:5.5f}' #NEWLINE# print ( msg . format ( send_type , ( recv_timestamp - start_timestamp ) , ( finish_timestamp - recv_timestamp ) , ( finish_timestamp - start_timestamp ) ) )