public function TimeDataCollector::getInitTime

Gets the initialization time.

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

Return value

float The elapsed time

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/DataCollector/TimeDataCollector.php, line 87

Class

TimeDataCollector
TimeDataCollector.

Namespace

Symfony\Component\HttpKernel\DataCollector

Code

public function getInitTime() {
  return $this->data['events']['__section__']
    ->getOrigin() - $this
    ->getStartTime();
}