title: Thread execution time in C/Linux
body: <p>Wandering if I can measure actual time or cpu ticks taken by a particular thread.</p>
  
  <pre><code>pthreadcreate(.........);
  //
  //
  pthreadjoin(.......);
  </code></pre>
  
  <p>I am running with 3 threads.</p>
  
  <p>One master thread is calling the rest two threads.
  I want to measure the execution time for a called thread.</p>
  
  <p>what should I use in linux environment ?</p>