function PerformanceTimingData::getDomTiming

Return value

int

File

webprofiler/src/Frontend/PerformanceTimingData.php, line 73

Class

PerformanceTimingData
Class PerformanceTimingData

Namespace

Drupal\webprofiler\Frontend

Code

public function getDomTiming() {
    if (isset($this->data['loadEventStart']) && isset($this->data['responseEnd'])) {
        return $this->data['loadEventStart'] - $this->data['responseEnd'];
    }
    else {
        return 0;
    }
}