protected function StopwatchEvent::getNow

Return the current time relative to origin.

Return value

float Time in ms

2 calls to StopwatchEvent::getNow()
StopwatchEvent::start in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/StopwatchEvent.php
Starts a new event period.
StopwatchEvent::stop in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/StopwatchEvent.php
Stops the last started event period.

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/StopwatchEvent.php, line 160

Class

StopwatchEvent
Represents an Event managed by Stopwatch.

Namespace

Symfony\Component\HttpKernel\Debug

Code

protected function getNow() {
  return $this
    ->formatTime(microtime(true) * 1000 - $this->origin);
}