while true; do curl -w "@cur_f.txt" -k -H "Authorization: OAuth smth" -d '{"args": [], "method": "somethod", }'
https://url/api 2 &>1 >> somelog.log; done;
где @cur_f.txt:
time total: %{time_total}
Еще проще:
curl -s -w %{time_total}\\n -o /dev/null "
Read more... )