pub fn dur_avg_oneline_ratio(measure: Duration, global: Duration) -> String {
    format!(
        "Real: {} {} User: {} {} Sys: {} {}",
        White.bold().paint(format!("{:7.3} ms/i", measure.avg_real() * 1e3)),
        Yellow.bold().paint(format!("{:2.0}%", measure.avg_real() / global.avg_real() * 100.)),
        Yellow.bold().paint(format!("{:7.3} ms/i", measure.avg_user() * 1e3)),
        Yellow.bold().paint(format!("{:2.0}%", measure.avg_user() / global.avg_user() * 100.)),
        Yellow.bold().paint(format!("{:7.3} ms/i", measure.avg_sys() * 1e3)),
        Yellow.bold().paint(format!("{:2.0}%", measure.avg_sys() / global.avg_sys() * 100.)),
    )
}
/// Format a rusage::Duration showing avgtime in ms, with percentage to a global
/// one.
Format a rusage::Duration showing avgtime in ms, with percentage to a global
one.
Format a rusage :: Duration showing avgtime in ms with percentage to a global one .
pub fn dur_avg_oneline_ratio(measure: Duration, global: Duration) -> String {
    format!(
        "Real: {} {} User: {} {} Sys: {} {}",
        White.bold().paint(format!("{:7.3} ms/i", measure.avg_real() * 1e3)),
        Yellow.bold().paint(format!("{:2.0}%", measure.avg_real() / global.avg_real() * 100.)),
        Yellow.bold().paint(format!("{:7.3} ms/i", measure.avg_user() * 1e3)),
        Yellow.bold().paint(format!("{:2.0}%", measure.avg_user() / global.avg_user() * 100.)),
        Yellow.bold().paint(format!("{:7.3} ms/i", measure.avg_sys() * 1e3)),
        Yellow.bold().paint(format!("{:2.0}%", measure.avg_sys() / global.avg_sys() * 100.)),
    )
}
pub fn dur_avg_oneline_ratio ( measure : Duration , global : Duration ) -> String { format ! ( " " White bold ( ) paint ( format ( " " measure avg_real ( ) 1e3 ) ) Yellow bold ( ) paint ( format ( " " measure avg_real ( ) global avg_real ( ) 100. ) ) Yellow bold ( ) paint ( format ( " " measure avg_user ( ) 1e3 ) ) Yellow bold ( ) paint ( format ( " " measure avg_user ( ) global avg_user ( ) 100. ) ) Yellow bold ( ) paint ( format ( " " measure avg_sys ( ) 1e3 ) ) Yellow bold ( ) paint ( format ( " " measure avg_sys ( ) global avg_sys ( ) 100. ) ) ) }
Format a rusage::Duration showing avgtime in ms, with percentage to a global
one.
Format a rusage :: Duration showing avgtime in ms with percentage to a global one .
measure
Duration
global
Duration
measure
Duration
global
Duration