title: How can I measure CPU time of a specific set of threads?
body: <p>I run C++ program in Linux.</p>
  
  <p>There are several threads pool (for computation, for io, for ... such things).</p>
  
  <p>The system call clock() gives me a way to measure the CPU time spent by all the CPU cores for the process.</p>
  
  <p>However, I want to measure the CPU time spent only by the threads in the computation threads pool.</p>
  
  <p>How can I achieve it?</p>
  
  <p>Thanks :D</p>