function Utils::currentTime
Wrapper for the hrtime() or microtime() functions (depending on the PHP version, one of the two is used)
@internal
Return value
float UNIX timestamp
5 calls to Utils::currentTime()
- CurlMultiHandler::addRequest in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php - CurlMultiHandler::tick in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php - Ticks the curl event loop.
- CurlMultiHandler::timeToNext in vendor/
guzzlehttp/ guzzle/ src/ Handler/ CurlMultiHandler.php - StreamHandler::invokeStats in vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php - StreamHandler::__invoke in vendor/
guzzlehttp/ guzzle/ src/ Handler/ StreamHandler.php - Sends an HTTP request.
File
-
vendor/
guzzlehttp/ guzzle/ src/ Utils.php, line 313
Class
Namespace
GuzzleHttpCode
public static function currentTime() : float {
return (double) \function_exists('hrtime') ? \hrtime(true) / 1000000000.0 : \microtime(true);
}