I run C++ program in Linux. There are several threads pool (for computation, for io, for … such things). The system call clock() gives me a way to measure the CPU time spent by all the CPU cores for the process. However, I want to measure the CPU time spent only by the threads in the computation threads pool. How