You are here

public static function PHP_Timer::timeSinceStartOfRequest in Zircon Profile 8

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

Formats the elapsed time since the start of the request as a string.

Return value

string

2 calls to PHP_Timer::timeSinceStartOfRequest()
PHP_Timer::resourceUsage in vendor/phpunit/php-timer/src/Timer.php
Returns the resources (time, memory) of the request as a string.
PHP_TimerTest::testTimeSinceStartOfRequest in vendor/phpunit/php-timer/Tests/TimerTest.php
@covers PHP_Timer::timeSinceStartOfRequest

File

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

Class

PHP_Timer
Utility class for timing.

Code

public static function timeSinceStartOfRequest() {
  return self::secondsToTimeString(microtime(true) - self::$requestTime);
}