I want to run some test that will basically send messages through different technologies (sockets, RMI, CORBA...) to check the performance of mentioned technologies.

Besides the different implementations my doubt is how to check the time elapsed during those message exchanging. There is an standard way to do it? Maybe time-stamping the date of every message in a terminal?? But I would like to use a more "pro" approach that could give me more complete information.

By the way, I am struggling with sockets a little bit. If anyone could point me to a nice or more common library in the community that could wrap the raw calls of the sockets communications??

I develop with C++ over Ubuntu.

Thank you very much in advance!!!