You are here

public function StopwatchPeriod::__construct in Devel 8.2

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. 4.x webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::__construct()

Constructor.

Parameters

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

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

File

webprofiler/src/Stopwatch.php, line 500

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);
}