This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eryksun
Recipients docs@python, eryksun, geoffreyspear, nanjekyejoannah, r.david.murray, serhiy.storchaka
Date 2019-08-25.23:53:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566777231.85.0.772319743886.issue20806@roundup.psfhosted.org>
In-reply-to
Content
The function's doc string also needs to be updated to use the correct field names: "user", "system", "children_user", "children_system", and "elapsed".

> And we can also add a link to MSDN.

os.times calls GetProcessTimes [1]. The user and kernel process times are incremented in clock ticks, i.e. in integer multiples of the system clock interrupt time. QueryUnbiasedInterruptTime [2] could thus be used for the value of `elapsed`. 

(Windows doesn't implement a process tree for the children_user and children_system values. It has jobs, which are similar to Linux control groups, but jobs aren't applicable here. POSIX doesn't have anything like Windows jobs or Linux cgroups.)

[1] https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocesstimes
[2] https://docs.microsoft.com/en-us/windows/win32/api/realtimeapiset/nf-realtimeapiset-queryunbiasedinterrupttime
History
Date User Action Args
2019-08-25 23:53:51eryksunsetrecipients: + eryksun, r.david.murray, docs@python, geoffreyspear, serhiy.storchaka, nanjekyejoannah
2019-08-25 23:53:51eryksunsetmessageid: <1566777231.85.0.772319743886.issue20806@roundup.psfhosted.org>
2019-08-25 23:53:51eryksunlinkissue20806 messages
2019-08-25 23:53:51eryksuncreate