Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Utils.php

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

Utils

Namespace

GuzzleHttp

Code

public static function currentTime() : float {
    return (double) \function_exists('hrtime') ? \hrtime(true) / 1000000000.0 : \microtime(true);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal