public function StopwatchEvent::__construct

Constructor.

Parameters

float $origin The origin time in milliseconds:

string $category The event category:

Throws

\InvalidArgumentException When the raw time is not valid

File

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

Class

StopwatchEvent
Represents an Event managed by Stopwatch.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function __construct($origin, $category = null) {
  $this->origin = $this
    ->formatTime($origin);
  $this->category = is_string($category) ? $category : 'default';
  $this->started = array();
  $this->periods = array();
}