Files
progress/progress
Quentin Pradet c1e07104e1 Update avg/eta/eta_td less frequently
When the progress bar is updated frequently (every few milliseconds),
the eta can change so quickly that it's impossible to read.

This commit updates the average while sma_window is being filled, then
after every second.

This means we're calling monotonic/time often, but those calls take less
than 100 nsec per loop on Linux, Windows and macOS [0], which is
equivalent to one attribute lookup or two.

[0]: https://github.com/python-trio/trio/issues/33
2019-02-01 18:16:14 +04:00
..
2018-09-13 10:34:24 +03:00
2018-09-13 10:34:24 +03:00
2018-09-13 10:34:24 +03:00