Is the following behaviour expected? The Time should be 10 seconds, that is, the meter should run concurrently during the "long" running fib computation. However, it always takes more than 10 seconds to finish:
julia> using ProgressMeter
julia> function show_progress()
p = ProgressMeter.ProgressUnknown()
for i in 1:10
ProgressMeter.update!(p)
sleep(1)
end
ProgressMeter.finish!(p)
end;
julia> fib(n) = n <= 1 ? n : fib(n - 1) + fib(n - 2);
julia> @time fib(44);
4.591181 seconds
julia> show_progress()
Progress: 0 Time: 0:00:10
julia> @async(fib(44)); show_progress();
Progress: 0 Time: 0:00:13
julia> @async(show_progress()); fib(44); # This one blocks for a few seconds before it starts.
Progress: 0 Time: 0:00:10
Is the following behaviour expected? The
Time
should be 10 seconds, that is, the meter should run concurrently during the "long" runningfib
computation. However, it always takes more than 10 seconds to finish: