[issue32093] macOS: implement time.thread_time() using thread_info()

2018-09-19 Thread STINNER Victor
STINNER Victor added the comment: > I'm not sure if it is worthwhile to implement this fairly specialised > function for older macOS releases due to the maintenance cost. Ok. I close the issue. -- resolution: -> wont fix stage: -> resolved status: open -> closed __

[issue32093] macOS: implement time.thread_time() using thread_info()

2017-11-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: CLOCK_THREAD_CPUTIME_ID should be available on macOS 10.12 and later (which is also when clock_gettime was introduced). I'm not sure if it is worthwhile to implement this fairly specialised function for older macOS releases due to the maintenance cost.

[issue32093] macOS: implement time.thread_time() using thread_info()

2017-11-20 Thread STINNER Victor
New submission from STINNER Victor : bpo-32025 added time.thread_time() function. On macOS, CLOCK_THREAD_CPUTIME_ID is not available. I propose to add a macOS implementation using thread_info(): return the sum of user and system times. -- components: macOS messages: 306569 nosy: ned.de