When I call GetThreadTimes() all my process threads have exactly the same CPU times. I expect this is because GetThreadTimes() uses the times() function via the times(&time_buf); on line 942 in ntdll/thread.c which returns the process rather than the thread times. I have failed to find a *nix function to get thread times, does one exist please?
red-ray wrote:> I have failed to find a *nix function to get thread times, does one exist please?This is not really a Wine question.
I have failed to find a *nix function to get thread times, does one exist that generally available such that it could be used by Wine please?
red-ray wrote:> I have failed to find a *nix function to get thread times, does one exist that generally available such that it could be used by Wine please?That info is available in /proc/<PID>/task/<TID>/stat files. See man 5 proc for description of what each field means.