You are here

public static function PHP_Timer::stop in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-timer/src/Timer.php \PHP_Timer::stop()

Stops the timer and returns the elapsed time.

Return value

float

3 calls to PHP_Timer::stop()
PHPUnit_Extensions_PhptTestCase::run in vendor/phpunit/phpunit/src/Extensions/PhptTestCase.php
Runs a test and collects its result in a TestResult instance.
PHPUnit_Framework_TestResult::run in vendor/phpunit/phpunit/src/Framework/TestResult.php
Runs a TestCase.
PHP_TimerTest::testStartStop in vendor/phpunit/php-timer/Tests/TimerTest.php
@covers PHP_Timer::start @covers PHP_Timer::stop

File

vendor/phpunit/php-timer/src/Timer.php, line 50

Class

PHP_Timer
Utility class for timing.

Code

public static function stop() {
  return microtime(true) - array_pop(self::$startTimes);
}