Improve accuracy of time estimates

This should be more accurate when the time to process one progress
unit is only a few milliseconds (or less than one millisecond).
(cherry picked from commit e21d51f9675a4c044aa6704ee27082070e6b5f0e)
Merge branch 'release' into rhbz1103947