public static function 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 drupal/core/vendor/phpunit/php-timer/PHP/Timer.php
Returns the resources (time, memory) of the request as a string.
PHP_TimerTest::testTimeSinceStartOfRequest in drupal/core/vendor/phpunit/php-timer/Tests/TimerTest.php
@covers PHP_Timer::timeSinceStartOfRequest

File

drupal/core/vendor/phpunit/php-timer/PHP/Timer.php, line 129

Class

PHP_Timer
Utility class for timing.

Code

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