async fn do_request(url: &str) -> Result<(u16, u128), reqwest::Error> {
    let start = Instant::now();
    let res = reqwest::get(url).await?;
    let duration = start.elapsed();

    Ok((res.status().as_u16(), duration.as_millis()))
}
/// Send a specific request to the url, measuring the time it took.
Send a specific request to the url, measuring the time it took.
Send a specific request to the url measuring the time it took .
async fn do_request(url: &str) -> Result<(u16, u128), reqwest::Error> {
    let start = Instant::now();
    let res = reqwest::get(url).await?;
    let duration = start.elapsed();
    Ok((res.status().as_u16(), duration.as_millis()))
}
async fn do_request ( url : & str ) -> Result < ( u16 , u128 ) , reqwest :: Error > { let start = Instant :: now ( ) ; let res = reqwest :: get ( url ) . await ? ; let duration = start . elapsed ( ) ; Ok ( ( res . status ( ) . as_u16 ( ) , duration . as_millis ( ) ) ) }
Send a specific request to the url, measuring the time it took.
Send a specific request to the url measuring the time it took .
url
&str
url
&str