I am trying to time my code performance.

I used clock() to time. However, it does not product precise timing. So, are there any function that I can use to get precise timing on code performance?