timed 0.2.1

Macros to time function execution
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::hop::Hop;

pub fn from(hops: &[Hop]) -> String {
    let result = hops
        .iter()
        .map(|hop| format!("\t{}", hop.to_chrome_trace()))
        .collect::<Vec<String>>()
        .join(",\n");

    format!("[\n{}\n]", result)
}