#progress #estimate #eta

pit-wall

measure and report the progress of your program

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

Download history 99/week @ 2024-03-10 7/week @ 2024-03-17 13/week @ 2024-03-31 1/week @ 2024-04-07 1/week @ 2024-04-28 25/week @ 2024-05-19 1/week @ 2024-05-26

58 downloads per month

MIT license

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