getinfo-times 1.2 KB

123456789101112131415161718192021222324252627
  1. An overview of the six time values available from curl_easy_getinfo()
  2. curk_easy_perform()
  3. |
  4. |--NT
  5. |--|--CT
  6. |--|--|--PT
  7. |--|--|--|--ST
  8. |--|--|--TT
  9. |--|--|--|--|--RT
  10. NT = CURLINFO_NAMELOOKUP_TIME. The time it took from the start until the name
  11. resolving was completed.
  12. CT = CURLINFO_CONNECT_TIME. The time it took from the start until the connect
  13. to the remote host (or proxy) was completed.
  14. PT = CURLINFO_PRETRANSFER_TIME. The time it took from the start until the file
  15. transfer is just about to begin. This includes all pre-transfer commands
  16. and negotiations that are specific to the particular protocol(s)
  17. involved.
  18. ST = CURLINFO_STARTTRANSFER_TIME. The time it took from the start until the
  19. first byte is just about to be transferred.
  20. TT = CURLINFO_TOTAL_TIME. Time of the previous transfer. This time does not
  21. include the connect time (CT), so if you want the complete operation
  22. time, you should add that.
  23. RT = CURLINFO_REDIRECT_TIME. The time it took for all redirection steps
  24. include name lookup, connect, pretransfer and transfer before final
  25. transaction was started. So, this is zero if no redirection took place.