FGRibreau / FGRibreau/spinners
Can we stop with final timer?
Abierto
enhancement
- Lenguaje dominante
- Rust
- Estrellas
- 602
- Forks
- 29
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
```rust
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);
```
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.