pub fn average_time(times: &[Duration]) -> Option<Duration>
Calculate the average of a slice of Duration. Returns None if empty.
Duration
None