You are here

public function Section::__construct in Devel 8.3

Same name and namespace in other branches
  1. 8 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Section::__construct()
  2. 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\Section::__construct()
  3. 4.x webprofiler/src/Stopwatch.php \Drupal\webprofiler\Section::__construct()

Constructor.

Parameters

float|null $origin: Set the origin of the events in this section, use null to set their origin to their start time.

File

webprofiler/src/Stopwatch.php, line 187

Class

Section
@internal This class is for internal usage only

Namespace

Drupal\webprofiler

Code

public function __construct($origin = NULL) {
  $this->origin = is_numeric($origin) ? $origin : NULL;
}