summaryrefslogtreecommitdiff
path: root/functions/curl_time.fish
blob: 972ced0d67bc282a51dc54b2b2ade6d52852f7d2 (plain)
1
2
3
4
5
6
function curl_time --wraps=curl --description "Get timming information from curl"
    for url in $argv
        echo "reaching: $url"
        curl -L -w "time_namelookup: %{time_namelookup}\ntime_connect: %{time_connect}\ntime_appconnect: %{time_appconnect}\ntime_pretransfer: %{time_pretransfer}\ntime_redirect: %{time_redirect}\ntime_starttransfer: %{time_starttransfer}\ntime_total: %{time_total}\n" -o /dev/null $url
    end
end