add a function that calculate the total bytes transferred to determine the total time for global data placement