Message349759
> I suppose it may benefit from a more precise counter, but since in
> Windows it also has a precise counter with time.perf_counter_ns(),
> I was expecting to see that value change, but it was mainly a
> confusion with the older time.clock().
Don't read too much into the clock info here:
>>> time.get_clock_info('process_time').resolution
1e-07
Process times [1] are stored as a 64-bit integer in units of 100 ns (1e-7). But the kernel schedules threads based on a timer that ticks every 15.625 ms by default. It can be lowered to about 0.5 ms, but this degrades battery life.
[1] https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-getprocesstimes |
|
Date |
User |
Action |
Args |
2019-08-14 21:45:26 | eryksun | set | recipients:
+ eryksun, paul.moore, tim.golden, zach.ware, steve.dower, Red Glyph |
2019-08-14 21:45:26 | eryksun | set | messageid: <1565819126.89.0.00196746257002.issue37859@roundup.psfhosted.org> |
2019-08-14 21:45:26 | eryksun | link | issue37859 messages |
2019-08-14 21:45:26 | eryksun | create | |
|