i want to store it b/c i want print elapsed time after 50 iteration of loop is run ....if i print elapsed time after every iteration the communication time increase i want that communication is done for 50 iteration then print the elapsed time
ishtiaq:
i want to store it b/c i want print elapsed time after 50 iteration of loop is run ....if i print elapsed time after every iteration the communication time increase i want that communication is done for 50 iteration then print the elapsed time
Do you want to know the time it takes to execute some block of code 50 times, or do you want to know all 50 times that it takes to execute the block of code once?
Printing the time that it takes to execute a block of code does not affect how long it takes to execute the block of code. It does affect how long it takes to execute the block of code again.
The bottom line: What problem are you trying to solve?