pub fn average(&self) -> String {
        let time = self.average_tick_execution_time();

        let time = if time < 1000 {
            format!("{}ns", time)
        } else if time < 1_000_000 {
            format!("{}µs", time / 1000)
        } else if time < 1_000_000_000 {
            format!("{}ms", time / 1_000_000)
        } else {
            format!("{}s", time / 1_000_000_000)
        };

        time
    }
/// Returns a human-readable string of the average execution time for a tick converted to the
/// nearest time magnitude.
Returns a human-readable string of the average execution time for a tick converted to the
nearest time magnitude.
Returns a human - readable string of the average execution time for a tick converted to the nearest time magnitude .
pub fn average(&self) -> String {
        let time = self.average_tick_execution_time();
        let time = if time < 1000 {
            format!("{}ns", time)
        } else if time < 1_000_000 {
            format!("{}µs", time / 1000)
        } else if time < 1_000_000_000 {
            format!("{}ms", time / 1_000_000)
        } else {
            format!("{}s", time / 1_000_000_000)
        };
        time
    }
pub fn average ( & self ) -> String { let time = self . average_tick_execution_time ( ) ; let time = if time < 1000 { format ! ( " " time ) } else if time < 1_000_000 { format ! ( " , ime  000) } else if time < 1_000_000_000 { format ! ( " " time 1_000_000 ) } else { format ! ( " " time 1_000_000_000 ) } ; time }
Returns a human-readable string of the average execution time for a tick converted to the
nearest time magnitude.
Returns a human - readable string of the average execution time for a tick converted to the nearest time magnitude .
&self
&self