Performance calculation for Message Queues

i have a program(C++ Code) that sends/receives information through queue's (Uses MQ)
Is there any UNIX/LINUX tool that calculates the load and performance time for the same.
If not how do i design the program that calculates the performance time.

i know that time.h can be used but it gives limited informantion.

What system - please show the output of

uname -a

it is Linux sytem