#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

#617 in Development tools

Download history 4/week @ 2024-02-14 50/week @ 2024-02-21 13/week @ 2024-02-28 65/week @ 2024-03-06 37/week @ 2024-03-13 4/week @ 2024-03-20 5/week @ 2024-03-27 9/week @ 2024-04-03

101 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