title: Measuring latency over network
body: <p>I have a program that will run in two different computers like: Server and Client. I want to measure the latency over the network in my program in C++ and Java. The normal commands to measure the runtime (such as <code>gettimeofday</code> in C) I think are not very accurate for run latency over the network. Some advice?</p>