STINNER Victor <vstin...@redhat.com> added the comment:
> process_time: namespace(adjustable=False, > implementation='clock_gettime(CLOCK_PROCESS_CPUTIME_ID)', monotonic=True, > resolution=1.0000000000000002e-06) Using CLOCK_PROCESS_CPUTIME_ID clock for time.process_time() looks good to me. I don't know why depending on how Python is built, you get a different clock. > process_time: namespace(adjustable=False, > implementation='getrusage(RUSAGE_SELF)', monotonic=True, resolution=1e-06) It should be the same clock than CLOCK_PROCESS_CPUTIME_ID, maybe with a different resolution. If both are available, we should prefer the clock with the best *effective* resolution. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue36205> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com