function TestRun::duration

Gets the test run execution elapsed time.

Return value

float The elapsed time.

File

core/lib/Drupal/Core/Test/TestRun.php, line 140

Class

TestRun
Implements an object that tracks execution of a test run.

Namespace

Drupal\Core\Test

Code

public function duration() : float {
  return $this->endExecutionTime - $this->startExecutionTime;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.