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

Breadcrumb

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

function StatementExecutionEndEvent::getElapsedTime

Gets the query execution elapsed time.

Return value

float The elapsed time.

File

core/lib/Drupal/Core/Database/Event/StatementExecutionEndEvent.php, line 50

Class

StatementExecutionEndEvent
Represents the end of a statement execution as an event.

Namespace

Drupal\Core\Database\Event

Code

public function getElapsedTime() : float {
    return $this->time - $this->startTime;
}
RSS feed
Powered by Drupal