title: How can I find the execution time of a section of my program in C?
body: <p>I'm trying to find a way to get the execution time of a section of code in C. I've already tried both time() and clock() from time.h, but it seems that time() returns seconds and clock() seems to give me milliseconds (or centiseconds?)  I would like something more precise though. Is there a way I can grab the time with at least microsecond precision?</p>
  
  <p>This only needs to be able to compile on Linux.</p>