function StatementExecutionEndEvent::getElapsedTime
Same name in other branches
- 11.x core/lib/Drupal/Core/Database/Event/StatementExecutionEndEvent.php \Drupal\Core\Database\Event\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\EventCode
public function getElapsedTime() : float {
return $this->time - $this->startTime;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.