A textual progress bar that estimates time remaining. It displays the estimated time remaining and, when finished, total duration.

progress_time()

See also

Examples

l_ply(1:100, function(x) Sys.sleep(.01), .progress = "time")
#> | | 0% | | 1% ~1 s remaining |= | 2% ~1 s remaining |= | 3% ~1 s remaining |== | 4% ~1 s remaining |== | 5% ~1 s remaining |=== | 6% ~1 s remaining |=== | 7% ~1 s remaining |==== | 8% ~1 s remaining |==== | 9% ~1 s remaining |===== | 10% ~1 s remaining |===== | 11% ~1 s remaining |====== | 12% ~1 s remaining |====== | 13% ~1 s remaining |======= | 14% ~1 s remaining |======= | 15% ~1 s remaining |======== | 16% ~1 s remaining |======== | 17% ~1 s remaining |========= | 18% ~1 s remaining |========= | 19% ~1 s remaining |========== | 20% ~1 s remaining |========== | 21% ~1 s remaining |=========== | 22% ~1 s remaining |=========== | 23% ~1 s remaining |============ | 24% ~1 s remaining |============= | 25% ~1 s remaining |============= | 26% ~1 s remaining |============== | 27% ~1 s remaining |============== | 28% ~1 s remaining |=============== | 29% ~1 s remaining |=============== | 30% ~1 s remaining |================ | 31% ~1 s remaining |================ | 32% ~1 s remaining |================= | 33% ~1 s remaining |================= | 34% ~1 s remaining |================== | 35% ~1 s remaining |================== | 36% ~1 s remaining |=================== | 37% ~1 s remaining |=================== | 38% ~1 s remaining |==================== | 39% ~1 s remaining |==================== | 40% ~1 s remaining |===================== | 41% ~1 s remaining |===================== | 42% ~1 s remaining |====================== | 43% ~1 s remaining |====================== | 44% ~1 s remaining |======================= | 45% ~1 s remaining |======================= | 46% ~1 s remaining |======================== | 47% ~1 s remaining |======================== | 48% ~1 s remaining |========================= | 49% ~1 s remaining |========================== | 50% ~1 s remaining |========================== | 51% ~1 s remaining |=========================== | 52% ~0 s remaining |=========================== | 53% ~0 s remaining |============================ | 54% ~0 s remaining |============================ | 55% ~0 s remaining |============================= | 56% ~0 s remaining |============================= | 57% ~0 s remaining |============================== | 58% ~0 s remaining |============================== | 59% ~0 s remaining |=============================== | 60% ~0 s remaining |=============================== | 61% ~0 s remaining |================================ | 62% ~0 s remaining |================================ | 63% ~0 s remaining |================================= | 64% ~0 s remaining |================================= | 65% ~0 s remaining |================================== | 66% ~0 s remaining |================================== | 67% ~0 s remaining |=================================== | 68% ~0 s remaining |=================================== | 69% ~0 s remaining |==================================== | 70% ~0 s remaining |==================================== | 71% ~0 s remaining |===================================== | 72% ~0 s remaining |===================================== | 73% ~0 s remaining |====================================== | 74% ~0 s remaining |======================================= | 75% ~0 s remaining |======================================= | 76% ~0 s remaining |======================================== | 77% ~0 s remaining |======================================== | 78% ~0 s remaining |========================================= | 79% ~0 s remaining |========================================= | 80% ~0 s remaining |========================================== | 81% ~0 s remaining |========================================== | 82% ~0 s remaining |=========================================== | 83% ~0 s remaining |=========================================== | 84% ~0 s remaining |============================================ | 85% ~0 s remaining |============================================ | 86% ~0 s remaining |============================================= | 87% ~0 s remaining |============================================= | 88% ~0 s remaining |============================================== | 89% ~0 s remaining |============================================== | 90% ~0 s remaining |=============================================== | 91% ~0 s remaining |=============================================== | 92% ~0 s remaining |================================================ | 93% ~0 s remaining |================================================ | 94% ~0 s remaining |================================================= | 95% ~0 s remaining |================================================= | 96% ~0 s remaining |================================================== | 97% ~0 s remaining |================================================== | 98% ~0 s remaining |=================================================== | 99% ~0 s remaining |====================================================|100% ~0 s remaining |====================================================|100% Completed after 1 s