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

Breadcrumb

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

function Time::getProxyRequestMicroTime

Returns a mimic of the timestamp of the current request.

Return value

float A value returned by microtime().

1 call to Time::getProxyRequestMicroTime()
Time::getRequestMicroTime in core/lib/Drupal/Component/Datetime/Time.php
Returns the timestamp for the current request with microsecond precision.

File

core/lib/Drupal/Component/Datetime/Time.php, line 97

Class

Time
Provides a class for obtaining system time.

Namespace

Drupal\Component\Datetime

Code

protected function getProxyRequestMicroTime() : float {
    if (!isset($this->proxyRequestTime)) {
        $this->proxyRequestTime = $this->getCurrentMicroTime();
    }
    return $this->proxyRequestTime;
}

API Navigation

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