You are here

public function StopwatchPeriod::__construct in Devel 4.x

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

Constructor.

Parameters

int $start: The relative time of the start of the period (in milliseconds)

int $end: The relative time of the end of the period (in milliseconds)

File

webprofiler/src/Stopwatch.php, line 561

Class

StopwatchPeriod
Class StopwatchPeriod.

Namespace

Drupal\webprofiler

Code

public function __construct($start, $end) {
  $this->start = (int) $start;
  $this->end = (int) $end;
  $this->memory = memory_get_usage(TRUE);
}