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