Using the command (curl-format.txt shown separately):
curl -w "@curl-format.txt" -o NUL -s http://www.something.com/
Prints:
time_namelookup: 0.016
time_connect: 0.250
time_appconnect: 0.000
time_pretransfer: 0.250
time_redirect: 0.000
time_starttransfer: 0.484
----------
time_total: 0.484
time_namelookup: %{time_namelookup}\n
time_connect: %{time_connect}\n
time_appconnect: %{time_appconnect}\n
time_pretransfer: %{time_pretransfer}\n
time_redirect: %{time_redirect}\n
time_starttransfer: %{time_starttransfer}\n
----------\n
time_total: %{time_total}