Skip to content

Commit

Permalink
Added time estimate to odc.ui._ui.mk_cbk_ui
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewJA authored and Kirill888 committed Dec 8, 2020
1 parent 4bf9027 commit 86dc6d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ui/odc/ui/_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def cbk(n, ntotal):
pbar.value = n

lbl_right.value = "{:d} of {:d}".format(n, ntotal)
lbl_left.value = "FPS: {:.1f}".format(n/elapsed)
lbl_left.value = "FPS: {:.1f} ({:0.1f} s remaining)".format(n/elapsed, elapsed/n * (ntotal - n))

return ui, cbk

Expand Down

0 comments on commit 86dc6d3

Please sign in to comment.