function PerformanceTimingData::getTtfbTiming
Return value
int
File
-
webprofiler/
src/ Frontend/ PerformanceTimingData.php, line 49
Class
- PerformanceTimingData
- Class PerformanceTimingData
Namespace
Drupal\webprofiler\FrontendCode
public function getTtfbTiming() {
if (isset($this->data['responseStart']) && isset($this->data['connectEnd'])) {
return $this->data['responseStart'] - $this->data['connectEnd'];
}
else {
return 0;
}
}