public function PerformanceTimingData::getDomTiming in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Frontend/PerformanceTimingData.php \Drupal\webprofiler\Frontend\PerformanceTimingData::getDomTiming()
- 8.2 webprofiler/src/Frontend/PerformanceTimingData.php \Drupal\webprofiler\Frontend\PerformanceTimingData::getDomTiming()
- 4.x webprofiler/src/Frontend/PerformanceTimingData.php \Drupal\webprofiler\Frontend\PerformanceTimingData::getDomTiming()
Return value
int
File
- webprofiler/
src/ Frontend/ PerformanceTimingData.php, line 73
Class
- PerformanceTimingData
- Class PerformanceTimingData
Namespace
Drupal\webprofiler\FrontendCode
public function getDomTiming() {
if (isset($this->data['loadEventStart']) && isset($this->data['responseEnd'])) {
return $this->data['loadEventStart'] - $this->data['responseEnd'];
}
else {
return 0;
}
}