I am trying to calculate a process utilization on my machine with Intel hyper-threading.
I have one problem when trying to do the calculation:
I am counting the loops my process is doing when running alone on the physical core and counting it when another process (identical one) is running on the other logical core (same physical core).
I see there is a diff in the amount of loops my process is doing. I guess it's related to the fact I am running in hyper-threading machine.
Is there a way to know what is the exact running time my process did so I will be able to add it to my calculation when I am trying to calculate the process utilization?