[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-16 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: > "Availability: Windows, Linux, Unix systems supporting > CLOCK_THREAD_CPUTIME_ID." covers AIX. That was my thought too, thanks again! -- ___ Python tracker _

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: I close the issue, since the commit was merged. "Availability: Windows, Linux, Unix systems supporting CLOCK_THREAD_CPUTIME_ID." covers AIX. But you can add AIX if you consider that it's not explicit enough. -- resolution: -> fixed stage: patch rev

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-16 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Should we mention about AIX support in availability section @vstinner? https://docs.python.org/3/library/time.html#time.thread_time -- ___ Python tracker _

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-16 Thread STINNER Victor
STINNER Victor added the comment: New changeset 45410862321ae509e8753f239b0ea28fdcef5bad by Batuhan Taskaya in branch 'master': bpo-40192: Use thread_cputime for time.thread_time to improve resolution (GH-19381) https://github.com/python/cpython/commit/45410862321ae509e8753f239b0ea28fdcef5ba

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-15 Thread STINNER Victor
STINNER Victor added the comment: time.thread_time() is documented as: "Return the value (in fractional seconds) of the sum of the system and user CPU time of the current thread. It does not include time elapsed during sleep." https://docs.python.org/dev/library/time.html#time.thread_time So

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-15 Thread STINNER Victor
STINNER Victor added the comment: I found this documentation on AIX thread_cputime(): https://www.ibm.com/support/knowledgecenter/ssw_aix_71/t_bostechref/thread_cputime.html """ Syntax #include int thread_cputime (tid, ctime) tid_t tid; thread_cputime_t * ctime ; typedef struct { uint64_

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-15 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: current: >>> import time >>> import time >>> time.get_clock_info('thread_time') namespace(adjustable=False, implementation='clock_gettime(CLOCK_THREAD_CPUTIME_ID)', monotonic=True, resolution=0.01) >>> time.thread_time() 0.07 PR 19381: >>> import time >>> t

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-05-14 Thread STINNER Victor
STINNER Victor added the comment: Which implementation is currently used on AIX? What's the output of the following command? $ ./python Python 3.9.0a6+ (heads/master:4a12d12186, May 15 2020, 04:55:17) >>> import time; time.get_clock_info('thread_time') namespace(adjustable=False, implementa

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-04-04 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +belopolsky, p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-04-04 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +18744 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19381 ___ Python tracker ___

[issue40192] time.thread_time isn't outputting in nanoseconds in AIX

2020-04-04 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : The resolution for thread_time is really low on AIX, but fortunately there is a way to get thread time in nanoseconds with thread_cputime. -bash-4.4$ ./python Python 3.9.0a5+ (heads/master:909f4a3, Apr 4 2020, 20:15:24) [C] on aix Type "help", "copyright"