My C program needs to evaluate time elapsed between sending/receiving a message from client to server. In order to debug, I used some printf() statements and they seem to slow down the program.
After removing all of them, the pattern of time becomes as expected. I wonder if there is any way to print that has little influence on execution time.