blob: 20d8a0698cb9f37a8ed5618eecbfba72bd7dcae8 [file] [log] [blame]
use std::thread;
use std::time::Duration;
use indicatif::ProgressBar;
fn main() {
let pb = ProgressBar::new(1024);
for _ in 0..1024 {
pb.inc(1);
thread::sleep(Duration::from_millis(5));
}
pb.finish_with_message("done");
}