Message350524
> 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. |
|
Date |
User |
Action |
Args |
2019-08-26 10:55:24 | vstinner | set | recipients:
+ vstinner, rhettinger, ronaldoussoren, ned.deily, lukasz.langa, Nitapol |
2019-08-26 10:55:24 | vstinner | set | messageid: <1566816924.89.0.519850572595.issue36205@roundup.psfhosted.org> |
2019-08-26 10:55:24 | vstinner | link | issue36205 messages |
2019-08-26 10:55:24 | vstinner | create | |
|