File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ class Curl
56
56
public $ httpStatusCode = 0 ;
57
57
public $ httpErrorMessage = null ;
58
58
59
+ public $ totalTime = 0 ;
59
60
public $ baseUrl = null ;
60
61
public $ url = null ;
61
62
public $ effectiveUrl = null ;
@@ -347,6 +348,7 @@ public function exec($ch = null)
347
348
$ this ->curlErrorMessage = curl_error ($ this ->curl );
348
349
$ this ->curlError = !($ this ->curlErrorCode === 0 );
349
350
$ this ->httpStatusCode = curl_getinfo ($ this ->curl , CURLINFO_HTTP_CODE );
351
+ $ this ->totalTime = curl_getinfo ($ this ->curl , CURLINFO_TOTAL_TIME );
350
352
$ this ->httpError = in_array (floor ($ this ->httpStatusCode / 100 ), array (4 , 5 ));
351
353
$ this ->error = $ this ->curlError || $ this ->httpError ;
352
354
$ this ->errorCode = $ this ->error ? ($ this ->curlError ? $ this ->curlErrorCode : $ this ->httpStatusCode ) : 0 ;
You can’t perform that action at this time.
0 commit comments