function 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;
}
}