title: Measuring C execution time, memory usage and cpu load for a program
body: <p>For a particular program of c code, I'd like to measure:</p>
  
  <pre><code>execution time (most likely complete program execution time)
  memory usage
  CPU load
  </code></pre>
  
  <p>how can i get all above information in C ?</p>