I am running a C ++ program on Linux.
There are several thread pools (for computing, for io, for ... such things).
The clock () system call gives me a way to measure the processor time spent by all the processor cores for a process.
However, I want to measure the processor time spent only by threads in the pool of calculation threads.
How can i achieve this?
Thanks: D
source
share