Using CURL/PHP, how can I measure server's execution time? and what is the diference b/w STARTTRANSFER_TIME and PRETRANSFER_TIME ?
1 Answer
Regarding STARTTRANSFER_TIME and PRETRANSFER_TIME.
Starttransfer_time
Pass a pointer to a double to receive the time, in seconds, it took from the start until the first byte is just about to be transferred. This includes CURLINFO_PRETRANSFER_TIME and also the time the server needs to calculate the result
Pretransfer_time
Pass a pointer to a double to receive the time, in seconds, it took from the start until the file transfer is just about to begin. This includes all pre-transfer commands and negotiations that are specific to the particular protocol(s) involved
total_timereported back from CURL. Also info about difference in STARTTRANSFER_TIME and PRETRANSFER_TIME