You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>functionshow_progress()
p = ProgressMeter.ProgressUnknown()
for i in1:10
ProgressMeter.update!(p)
sleep(1)
end
ProgressMeter.finish!(p)
end;
julia>fib(n) = n <=1? n :fib(n -1) +fib(n -2);
julia>@timefib(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
The text was updated successfully, but these errors were encountered:
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:The text was updated successfully, but these errors were encountered: