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