pub fn report_elapsed_time(instant: Instant) {
    let duration_ms = Duration::from_std(instant.elapsed()).unwrap().num_milliseconds() as f64;

    if duration_ms < 1000.0 {
        success(&format!("Done in {}ms.\n", duration_ms));
    } else {
        let duration_sec = duration_ms / 1000.0;
        success(&format!("Done in {:.1}s.\n", ((duration_sec * 10.0).round() / 10.0)));
    }
}
/// Print the time elapsed rounded to 1 decimal
Print the time elapsed rounded to 1 decimal
Print the time elapsed rounded to 1 decimal
pub fn report_elapsed_time(instant: Instant) {
    let duration_ms = Duration::from_std(instant.elapsed()).unwrap().num_milliseconds() as f64;
    if duration_ms < 1000.0 {
        success(&format!("Done in {}ms.\n", duration_ms));
    } else {
        let duration_sec = duration_ms / 1000.0;
        success(&format!("Done in {:.1}s.\n", ((duration_sec * 10.0).round() / 10.0)));
    }
}
pub fn report_elapsed_time ( instant : Instant ) { let duration_ms = Duration :: from_std ( instant . elapsed ( ) ) . unwrap ( ) . num_milliseconds ( ) as f64 ; if duration_ms < 1000.0 { success ( & format ! ( " \n " duration_ms ) ) ; } else { let duration_sec = duration_ms / 1000.0 ; success ( & format ! ( " \n " ( ( duration_sec 10.0 ) round ( ) 10.0 ) ) ) ; } }
Print the time elapsed rounded to 1 decimal
Print the time elapsed rounded to 1 decimal
instant
Instant
instant
Instant