Timing program execution

Is there any pass I can apply that will add code to generate precise
statistics regarding the running time of a program? Or is
/usr/bin/time the best I can have?

Thanks,
Silvio Ricardo Cordeiro