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

Breadcrumb

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

function TimeDataCollector::getInitTime

Gets the initialization time.

This is the time spent until the beginning of the request handling.

File

vendor/symfony/http-kernel/DataCollector/TimeDataCollector.php, line 104

Class

TimeDataCollector
@author Fabien Potencier <fabien@symfony.com>

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function getInitTime() : float {
    if (!isset($this->data['events']['__section__'])) {
        return 0;
    }
    return $this->data['events']['__section__']
        ->getOrigin() - $this->getStartTime();
}

API Navigation

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