public function StopwatchPeriod::__construct in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::__construct()
- 8.2 webprofiler/src/Stopwatch.php \Drupal\webprofiler\StopwatchPeriod::__construct()
- 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\webprofilerCode
public function __construct($start, $end) {
$this->start = (int) $start;
$this->end = (int) $end;
$this->memory = memory_get_usage(TRUE);
}