7 unstable releases
0.4.3 | Mar 9, 2023 |
---|---|
0.4.2 | Sep 24, 2022 |
0.4.1 | May 28, 2022 |
0.3.0 | May 28, 2022 |
0.1.0 | May 28, 2022 |
#838 in Development tools
58 downloads per month
8KB
112 lines
Pit Wall - 🏎⏱
Measure the progress of execution and report on it. The intention is to help you report the progress of some execution in whatever form you wish. Not a profiling library. You define, and report the work done yourself.
Feedback and PRs very welcome.
Why not use lib X instead?
All progress reporting libs I found either took control of the entire terminal output, or did not show an eta estimate.
Wishlist
- Pass a logging function plus a period to have the lib log for you.
- More flexibility in how progress is formatted as string.
- More flexibility in how progress is periodically logged.
- Test time_elapsed output more rigorously.
- Start at time for long-running processes that are resumed.
lib.rs
:
Measure the progress of execution and report on it.
Not a profiling library. You define, and report the work done yourself.
Usage
use pit_wall::Progress;
let mut progress = Progress::new("job name", 100);
progress.inc_work_done();
println!("{}", progress.get_progress_string()); // job name 2/100 - 2.0% started 2s ago, eta: 98s
Dependencies
~460KB