-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
Description
When we create a spinner with Spinner::with_timer, after issuing a stop I'd like to add a message with the final timer : Eg: Took xx seconds or even access the final timer from the spinner.
let mut sp = Spinner::with_timer(Spinners::Dots3, "Download...".into());
sp.stop_and_persist_with_timer("β", "Download Complete!".into());
// or
sp.stop_and_persist("β", "Download Complete!".into());
let final_time : &str = sp.get_final_time();
println!("Took {} long.", final_time);Reactions are currently unavailable