I have a calculation which takes an unknown number of steps to increase a real value x
from 0.0 to some user-specified target value xmax > 0.0
. I want to use ProgressMeter
to show the progress but none of progressmeter types seem applicable:
Progress
counts an integer number of steps up to some targetn
.ProgressThresh
tracks the decrease of a real value down to some targetxmin
.ProgressUnknown
simply counts how many steps have been taken, with no target.
I can envision workarounds: For example, I could discretize the range [0, xmax] and use Progress
to track the discretized value of x
. Or, I could use ProgressThresh
to track the decrease of xmax - x
. However, both of these approaches seem clunky.
Is there a way to use ProgressMeter
to directly show the progression of an increasing real value?