aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inc/HTTP/HTTPClient.php
diff options
context:
space:
mode:
authorElan Ruusamäe <glen@delfi.ee>2023-04-05 15:21:27 +0300
committerElan Ruusamäe <glen@delfi.ee>2023-04-05 15:26:33 +0300
commit88743d14b0577cb4ad8b42a0a18024d2be6d09de (patch)
tree8d1c35130aca86183871c6fe3fa4e6515ec6833b /inc/HTTP/HTTPClient.php
parentfac3e3ef7b3b7ae57507661ad671e4046e129fe8 (diff)
downloaddokuwiki-88743d14b0577cb4ad8b42a0a18024d2be6d09de.tar.gz
dokuwiki-88743d14b0577cb4ad8b42a0a18024d2be6d09de.zip
HttpClient::time use microtime(true) directly
Diffstat (limited to 'inc/HTTP/HTTPClient.php')
-rw-r--r--inc/HTTP/HTTPClient.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/inc/HTTP/HTTPClient.php b/inc/HTTP/HTTPClient.php
index 963091856..188390b91 100644
--- a/inc/HTTP/HTTPClient.php
+++ b/inc/HTTP/HTTPClient.php
@@ -752,8 +752,7 @@ class HTTPClient {
* @return float
*/
protected static function time(){
- list($usec, $sec) = explode(" ", microtime());
- return ((float)$usec + (float)$sec);
+ return microtime(true);
}
/**