开发者

Curl/php: execution time?

开发者 https://www.devze.com 2023-03-27 13:54 出处:网络
Using CURL/PHP, how can I measure server\'s execution time? and what is the diference b/w STARTTRANSFER_TIME and 开发者_如何转开发PRETRANSFER_TIME ?Regarding STARTTRANSFER_TIME and PRETRANSFER_TIME.

Using CURL/PHP, how can I measure server's execution time? and what is the diference b/w STARTTRANSFER_TIME and 开发者_如何转开发PRETRANSFER_TIME ?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号