#progress #eta #estimate

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

#655 in Development tools

Download history 8/week @ 2022-11-30 2/week @ 2022-12-07 9/week @ 2022-12-14 10/week @ 2022-12-21 1/week @ 2022-12-28 3/week @ 2023-01-04 3/week @ 2023-01-11 13/week @ 2023-01-18 13/week @ 2023-01-25 14/week @ 2023-02-01 25/week @ 2023-02-08 26/week @ 2023-02-15 3/week @ 2023-02-22 1/week @ 2023-03-01 42/week @ 2023-03-08 9/week @ 2023-03-15

63 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

~455KB